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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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(source="microphone", type="filepath", label="Speak Now")
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")