Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,10 +63,11 @@ def translate_speech(audio_file):
|
|
63 |
# Define the Gradio interface
|
64 |
iface = gr.Interface(
|
65 |
fn=translate_speech,
|
66 |
-
inputs=gr.inputs.Audio(type="
|
67 |
outputs=gr.outputs.Audio(type="numpy"),
|
68 |
title="Hausa to English Translation",
|
69 |
description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."
|
70 |
)
|
71 |
|
72 |
iface.launch()
|
|
|
|
63 |
# Define the Gradio interface
|
64 |
iface = gr.Interface(
|
65 |
fn=translate_speech,
|
66 |
+
inputs=gr.inputs.Audio(type="filepath"), # Change this line
|
67 |
outputs=gr.outputs.Audio(type="numpy"),
|
68 |
title="Hausa to English Translation",
|
69 |
description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."
|
70 |
)
|
71 |
|
72 |
iface.launch()
|
73 |
+
|