akash-43 commited on
Commit
84128fc
·
verified ·
1 Parent(s): 311da5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,10 +18,10 @@ def translate_speech(audio):
18
  # Build Gradio Interface
19
  interface = gr.Interface(
20
  fn=translate_speech,
21
- inputs=gr.Audio(source=["microphone", "upload"], type="filepath"),
22
  outputs="text",
23
  title="Finnish to English Speech Translator",
24
- description="This app translates Finnish speech to English text. You can either speak in Finnish or upload an audio file, and see the translation appear in English!"
25
  )
26
 
27
  # Launch the app
 
18
  # Build Gradio Interface
19
  interface = gr.Interface(
20
  fn=translate_speech,
21
+ inputs=gr.Audio(type="filepath"), # Remove the 'source' argument
22
  outputs="text",
23
  title="Finnish to English Speech Translator",
24
+ description="This app translates Finnish speech to English text. You can upload an audio file, and see the translation appear in English!"
25
  )
26
 
27
  # Launch the app