frogcho123 commited on
Commit
cc4c3a2
1 Parent(s): 13b10f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -41,7 +41,8 @@ def speech_to_speech(input_audio, to_lang):
41
  languages = ["ru", "fr", "es", "de"] # Example languages: Russian, French, Spanish, German
42
  file_input = gr.inputs.File(label="Upload Audio")
43
  dropdown = gr.inputs.Dropdown(languages, label="Translation Language")
44
- audio_output = gr.outputs.Audio(type="file", label="Translated Voice")
 
45
 
46
  gr.Interface(fn=speech_to_speech, inputs=[file_input, dropdown], outputs=audio_output, title="Speech-to-Speech Translator", description="Upload an audio file (MP3, WAV, or FLAC) and choose the target language for translation.", theme="default").launch()
47
 
 
41
  languages = ["ru", "fr", "es", "de"] # Example languages: Russian, French, Spanish, German
42
  file_input = gr.inputs.File(label="Upload Audio")
43
  dropdown = gr.inputs.Dropdown(languages, label="Translation Language")
44
+ audio_output = gr.outputs.Audio(label="Translated Voice")
45
+
46
 
47
  gr.Interface(fn=speech_to_speech, inputs=[file_input, dropdown], outputs=audio_output, title="Speech-to-Speech Translator", description="Upload an audio file (MP3, WAV, or FLAC) and choose the target language for translation.", theme="default").launch()
48