duongthienz commited on
Commit
159370d
·
verified ·
1 Parent(s): 1b6e62f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -110,7 +110,7 @@ def processFile(filePath):
110
  print("Audio Equalized")
111
  print("Detecting speakers")
112
  diarization_output = pipeline({"waveform": waveform_gain_adjusted, "sample_rate": sampleRate})
113
- annotations = Annotation()
114
  for turn, _, speaker in diarization_output.itertracks(yield_label=True):
115
  annotations[turn] = speaker
116
  print("Speakers Detected")
 
110
  print("Audio Equalized")
111
  print("Detecting speakers")
112
  diarization_output = pipeline({"waveform": waveform_gain_adjusted, "sample_rate": sampleRate})
113
+ annotations = diarization_output.speaker_diarization
114
  for turn, _, speaker in diarization_output.itertracks(yield_label=True):
115
  annotations[turn] = speaker
116
  print("Speakers Detected")