MeloRFTW commited on
Commit
7766367
·
verified ·
1 Parent(s): b248823

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def transcribe(audio_path):
17
  wav_path = convert_audio_to_wav(audio_path)
18
  result = asr(wav_path)
19
  os.remove(wav_path)
20
- return result["text"]
21
 
22
  # Gradio interface (DO NOT use share=True)
23
  demo = gr.Interface(
 
17
  wav_path = convert_audio_to_wav(audio_path)
18
  result = asr(wav_path)
19
  os.remove(wav_path)
20
+ return result[0]
21
 
22
  # Gradio interface (DO NOT use share=True)
23
  demo = gr.Interface(