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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -111,8 +111,6 @@ def processFile(filePath):
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")
117
  totalTimeInSeconds = int(waveform_gain_adjusted.shape[-1]/sampleRate)
118
  print("Time in seconds calculated")
 
111
  print("Detecting speakers")
112
  diarization_output = pipeline({"waveform": waveform_gain_adjusted, "sample_rate": sampleRate})
113
  annotations = diarization_output.speaker_diarization
 
 
114
  print("Speakers Detected")
115
  totalTimeInSeconds = int(waveform_gain_adjusted.shape[-1]/sampleRate)
116
  print("Time in seconds calculated")