Cahlil-Togonon commited on
Commit
4c8ad45
1 Parent(s): 0fe103c

app.py testing

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,8 +3,8 @@ from pyannote.audio import Pipeline
3
 
4
  def diarization(audio):
5
  pipeline = Pipeline.from_pretrained("pyannote/speaker-segmentation")
6
- parameters = {"onset":0.7,"offset":0.3,"min_duration_on":0.0,"min_duration_off":0.0}
7
- pipeline.instantiate(parameters)
8
  output = pipeline(audio)
9
  answer = ""
10
  for turn, _, speaker in output.itertracks(yield_label=True):
 
3
 
4
  def diarization(audio):
5
  pipeline = Pipeline.from_pretrained("pyannote/speaker-segmentation")
6
+ #parameters = {"onset":0.7,"offset":0.3,"min_duration_on":0.0,"min_duration_off":0.0}
7
+ #pipeline.instantiate(parameters)
8
  output = pipeline(audio)
9
  answer = ""
10
  for turn, _, speaker in output.itertracks(yield_label=True):