Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def translate_speech(audio_file_path):
|
|
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="English to Hausa Translation",
|
69 |
description="Realtime demo for English to Hausa translation using speech recognition and text-to-speech synthesis."
|
|
|
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="English to Hausa Translation",
|
69 |
description="Realtime demo for English to Hausa translation using speech recognition and text-to-speech synthesis."
|