asahi417 commited on
Commit
df7d9b2
·
1 Parent(s): add17f8
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -76,7 +76,9 @@ def transcribe(inputs: str,
76
  description = (f"Transcribe and diarize long-form microphone or audio inputs with the click of a button! Demo uses "
77
  f"Kotoba-Whisper [{model_name}](https://huggingface.co/{model_name}).")
78
  title = f"Audio Transcription and Diarization with {os.path.basename(model_name)}"
79
- shared_config = {"fn": transcribe, "title": title, "description": description, "allow_flagging": "never", "examples": [[example_file]]}
 
 
80
  o_upload = gr.Markdown()
81
  o_mic = gr.Markdown()
82
  options = [
 
76
  description = (f"Transcribe and diarize long-form microphone or audio inputs with the click of a button! Demo uses "
77
  f"Kotoba-Whisper [{model_name}](https://huggingface.co/{model_name}).")
78
  title = f"Audio Transcription and Diarization with {os.path.basename(model_name)}"
79
+ shared_config = {"fn": transcribe, "title": title, "description": description, "allow_flagging": "never", "examples": [
80
+ [example_file, True, 0, 0, 0, 0.5, 0.5]
81
+ ]}
82
  o_upload = gr.Markdown()
83
  o_mic = gr.Markdown()
84
  options = [