Spaces:
Runtime error
Runtime error
run test
Browse files
app.py
CHANGED
@@ -25,12 +25,11 @@ 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 |
-
|
29 |
files = [audio.name]
|
30 |
-
print(audio.name)
|
31 |
result= "The format must be mp3,wav and ogg"
|
32 |
for fname, transcription in zip(files, hf_model.transcribe(paths2audio_files=files)):
|
33 |
result= transcription[0]
|
|
|
34 |
return result
|
35 |
gradio_ui = gr.Interface(
|
36 |
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 |
files = [audio.name]
|
|
|
29 |
result= "The format must be mp3,wav and ogg"
|
30 |
for fname, transcription in zip(files, hf_model.transcribe(paths2audio_files=files)):
|
31 |
result= transcription[0]
|
32 |
+
result+= " Igisubiza"
|
33 |
return result
|
34 |
gradio_ui = gr.Interface(
|
35 |
fn=transcribe,
|