Baghdad99 commited on
Commit
ef4cfee
1 Parent(s): 4918a16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(source="microphone", 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."
 
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."