oslohaze commited on
Commit
059c884
·
verified ·
1 Parent(s): 68de4f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def translate_speech(audio_path):
37
  # Gradio interface
38
  iface = gr.Interface(
39
  fn=lambda text, audio_path: (translate_text(text), translate_speech(audio_path) if audio_path else None),
40
- inputs=[gr.Textbox(label="Input English Text"), gr.Audio(type="filepath", optional=True)],
41
  outputs=[gr.Textbox(label="Translated Malayalam Text (from Text)"), gr.Textbox(label="Translated Malayalam Text (from Speech)")],
42
  title="English to Malayalam Translator",
43
  description="Translate English text or speech to Malayalam. Either enter text or speak into the microphone."
 
37
  # Gradio interface
38
  iface = gr.Interface(
39
  fn=lambda text, audio_path: (translate_text(text), translate_speech(audio_path) if audio_path else None),
40
+ inputs=[gr.Textbox(label="Input English Text"), gr.Audio(type="filepath")],
41
  outputs=[gr.Textbox(label="Translated Malayalam Text (from Text)"), gr.Textbox(label="Translated Malayalam Text (from Speech)")],
42
  title="English to Malayalam Translator",
43
  description="Translate English text or speech to Malayalam. Either enter text or speak into the microphone."