liuyang commited on
Commit
6bea290
·
1 Parent(s): e79159f
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1323,7 +1323,7 @@ def audio_diarization_task(task_json, num_speakers):
1323
 
1324
  result = transcriber.process_audio_diarization(
1325
  task_json=task_json,
1326
- num_speakers=num_speakers if num_speakers > 0 else None,
1327
  )
1328
  #formatted_output = format_segments_for_display(result)
1329
  return "OK", result
 
1323
 
1324
  result = transcriber.process_audio_diarization(
1325
  task_json=task_json,
1326
+ num_speakers=num_speakers if num_speakers > 0 else 0,
1327
  )
1328
  #formatted_output = format_segments_for_display(result)
1329
  return "OK", result