Olaolu Olugbenle commited on
Commit
ba87ed4
·
1 Parent(s): 0ad9c5b

fixed translation input mode bugs

Browse files
Files changed (1) hide show
  1. app.py +14 -13
app.py CHANGED
@@ -316,21 +316,22 @@ with gr.Blocks(title="Olùkọ́ | Learn Yoruba") as app:
316
  value="Yoruba → English",
317
  label="Direction"
318
  )
 
319
 
320
- # User input microphone
321
- mic_recorder = gr.Audio(
322
- sources="microphone"
323
- type="filepath",
324
- label="🎙️",
325
- show_label=True
326
- )
327
 
328
- # single editable textbox + microphone next to it
329
- #User input textbox
330
- output_transcription = gr.Textbox(
331
- label="✍️ Speak/Type...",
332
- interactive=True
333
- )
 
334
 
335
  #Store translation textbox + TTS model in same row
336
  with gr.Row():
 
316
  value="Yoruba → English",
317
  label="Direction"
318
  )
319
+ with gr.Row():
320
 
321
+ # single editable textbox + microphone next to it
322
+ #User input textbox
323
+ output_transcription = gr.Textbox(
324
+ label="✍️ Speak/Type...",
325
+ interactive=True
326
+ )
 
327
 
328
+ # User input microphone
329
+ mic_recorder = gr.Audio(
330
+ sources="microphone",
331
+ type="filepath",
332
+ label="🎙️",
333
+ show_label=True
334
+ )
335
 
336
  #Store translation textbox + TTS model in same row
337
  with gr.Row():