frogcho123 commited on
Commit
0856a96
1 Parent(s): 3a6f579

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -55,8 +55,7 @@ def translate_speech_interface(audio, target_lang):
55
  # Define the Gradio interface
56
  audio_recording = gr.inputs.Audio(source="microphone", type="numpy", label="Record your speech")
57
  target_language = gr.inputs.Dropdown(["en", "ru", "fr"], label="Target Language")
58
- output_audio = gr.outputs.Audio(type="file", label="Translated Audio")
59
 
60
  gr.Interface(fn=translate_speech_interface, inputs=[audio_recording, target_language], outputs=output_audio, title="Speech Translator").launch()
61
 
62
-
 
55
  # Define the Gradio interface
56
  audio_recording = gr.inputs.Audio(source="microphone", type="numpy", label="Record your speech")
57
  target_language = gr.inputs.Dropdown(["en", "ru", "fr"], label="Target Language")
58
+ output_audio = gr.outputs.Audio(type="numpy", label="Translated Audio")
59
 
60
  gr.Interface(fn=translate_speech_interface, inputs=[audio_recording, target_language], outputs=output_audio, title="Speech Translator").launch()
61