Baghdad99 commited on
Commit
eaff29b
1 Parent(s): 7b8c926

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,10 +34,11 @@ def translate_speech(audio):
34
  # Define the Gradio interface
35
  iface = gr.Interface(
36
  fn=translate_speech,
37
- inputs=gr.inputs.Audio(source="microphone", type="filepath"),
38
  outputs=gr.outputs.Audio(type="numpy"),
39
  title="Hausa to English Translation",
40
  description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."
41
  )
42
 
 
43
  iface.launch()
 
34
  # Define the Gradio interface
35
  iface = gr.Interface(
36
  fn=translate_speech,
37
+ inputs=gr.inputs.Audio(source="microphone", type="numpy"),
38
  outputs=gr.outputs.Audio(type="numpy"),
39
  title="Hausa to English Translation",
40
  description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."
41
  )
42
 
43
+
44
  iface.launch()