Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,10 +28,11 @@ with gr.Blocks() as demo:
|
|
| 28 |
gr.Markdown("### Multilingual Realtime Translator - English β Yoruba (V1)")
|
| 29 |
|
| 30 |
with gr.Tab("Speech Input"):
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
|
|
|
| 35 |
|
| 36 |
|
| 37 |
with gr.Tab("Text Input"):
|
|
|
|
| 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 |
+
translate_btn = gr.Button("Translate Speech")
|
| 35 |
+
translate_btn.click(translate_speech, inputs=mic, outputs=[transcription, translation])
|
| 36 |
|
| 37 |
|
| 38 |
with gr.Tab("Text Input"):
|