Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ def translate_speech(audio_input):
|
|
84 |
# Define the Gradio interface
|
85 |
iface = gr.Interface(
|
86 |
fn=translate_speech,
|
87 |
-
inputs=gr.inputs.Audio(
|
88 |
outputs=gr.outputs.Audio(type="numpy"),
|
89 |
title="Hausa to English Translation",
|
90 |
description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."
|
|
|
84 |
# Define the Gradio interface
|
85 |
iface = gr.Interface(
|
86 |
fn=translate_speech,
|
87 |
+
inputs=gr.inputs.Audio(type="filepath"), # Change this line
|
88 |
outputs=gr.outputs.Audio(type="numpy"),
|
89 |
title="Hausa to English Translation",
|
90 |
description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."
|