Spaces:
Runtime error
Runtime error
fix transcribe naming error
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def transcribe(audio, audio_microphone):
|
|
| 25 |
audio = audio_microphone if audio_microphone else audio
|
| 26 |
if convert(audio)== False:
|
| 27 |
return "The format must be mp3,wav and ogg"
|
| 28 |
-
result= hf_model.transcribe(audio.name)
|
| 29 |
return result[0]
|
| 30 |
gradio_ui = gr.Interface(
|
| 31 |
fn=transcribe,
|
|
|
|
| 25 |
audio = audio_microphone if audio_microphone else audio
|
| 26 |
if convert(audio)== False:
|
| 27 |
return "The format must be mp3,wav and ogg"
|
| 28 |
+
result= hf_model.transcribe([audio.name])
|
| 29 |
return result[0]
|
| 30 |
gradio_ui = gr.Interface(
|
| 31 |
fn=transcribe,
|