Spaces:
Runtime error
Runtime error
Commit ·
d33b363
1
Parent(s): 86634ef
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,12 +27,19 @@ def speech_to_speech_translation(audio_filepath):
|
|
| 27 |
translated_text = translate(audio_dict)
|
| 28 |
return translated_text
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
demo = gr.Blocks()
|
| 31 |
|
| 32 |
mic_translate = gr.Interface(
|
| 33 |
fn=speech_to_speech_translation,
|
| 34 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
| 35 |
-
outputs=gr.Textbox(label="Translation"),allow_flagging="never"
|
|
|
|
| 36 |
|
| 37 |
with demo:
|
| 38 |
gr.TabbedInterface([mic_translate], ["Local Tamil Translator"])
|
|
|
|
| 27 |
translated_text = translate(audio_dict)
|
| 28 |
return translated_text
|
| 29 |
|
| 30 |
+
title = "Tamil Translator / Whisper AI"
|
| 31 |
+
|
| 32 |
+
description = """
|
| 33 |
+
This is just a simple gradio app that can record spoken tamil audio and translates it into english language.
|
| 34 |
+
"""
|
| 35 |
+
|
| 36 |
demo = gr.Blocks()
|
| 37 |
|
| 38 |
mic_translate = gr.Interface(
|
| 39 |
fn=speech_to_speech_translation,
|
| 40 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
| 41 |
+
outputs=gr.Textbox(label="Translation"),allow_flagging="never",title=title,
|
| 42 |
+
description=description)
|
| 43 |
|
| 44 |
with demo:
|
| 45 |
gr.TabbedInterface([mic_translate], ["Local Tamil Translator"])
|