Baghdad99 commited on
Commit
67f2fe4
·
1 Parent(s): 2f47955

Update app.py

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