Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"
|
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."
|