Baghdad99 commited on
Commit
73cf408
1 Parent(s): 2e05ac0

Update app.py

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