ubiodee commited on
Commit
fe5a1f2
Β·
verified Β·
1 Parent(s): bfc9210

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- 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"):
 
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"):