Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,11 +28,12 @@ with gr.Blocks() as demo:
|
|
| 28 |
gr.Markdown("### Multilingual Realtime Translator - English β Yoruba (V1)")
|
| 29 |
|
| 30 |
with gr.Tab("Speech Input"):
|
| 31 |
-
mic = gr.Audio(
|
| 32 |
transcription = gr.Textbox(label="Transcription")
|
| 33 |
translation = gr.Textbox(label="Translation")
|
| 34 |
mic.submit(translate_speech, inputs=mic, outputs=[transcription, translation])
|
| 35 |
|
|
|
|
| 36 |
with gr.Tab("Text Input"):
|
| 37 |
input_text = gr.Textbox(label="Enter text")
|
| 38 |
translated_text = gr.Textbox(label="Translated text")
|
|
|
|
| 28 |
gr.Markdown("### Multilingual Realtime Translator - English β Yoruba (V1)")
|
| 29 |
|
| 30 |
with gr.Tab("Speech Input"):
|
| 31 |
+
mic = gr.Audio(type="filepath", label="ποΈ Click to record", interactive=True)
|
| 32 |
transcription = gr.Textbox(label="Transcription")
|
| 33 |
translation = gr.Textbox(label="Translation")
|
| 34 |
mic.submit(translate_speech, inputs=mic, outputs=[transcription, translation])
|
| 35 |
|
| 36 |
+
|
| 37 |
with gr.Tab("Text Input"):
|
| 38 |
input_text = gr.Textbox(label="Enter text")
|
| 39 |
translated_text = gr.Textbox(label="Translated text")
|