nithinraok commited on
Commit
9b7eef6
1 Parent(s): 0c7df68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
9
  model = NeuralDiarizer.from_pretrained("diar_msdd_telephonic").to(device)
10
 
11
  def run_diarization(path1):
12
- annotation = model(path1, num_workers=0)
13
  rttm=annotation.to_rttm()
14
  df = pd.DataFrame(columns=['start_time', 'end_time', 'speaker'])
15
  for idx,line in enumerate(rttm.splitlines()):
 
9
  model = NeuralDiarizer.from_pretrained("diar_msdd_telephonic").to(device)
10
 
11
  def run_diarization(path1):
12
+ annotation = model(path1, num_workers=0, batch_size=16)
13
  rttm=annotation.to_rttm()
14
  df = pd.DataFrame(columns=['start_time', 'end_time', 'speaker'])
15
  for idx,line in enumerate(rttm.splitlines()):