minhahwang Copilot commited on
Commit
1769a75
Β·
1 Parent(s): df70548

ui: remove text input box from Q&A - voice only

Browse files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -542,14 +542,11 @@ with gr.Blocks(title="MomsVoice", css=css_code) as demo:
542
  with gr.Group(visible=False) as qa_input_group:
543
  question_audio = gr.Audio(
544
  sources=["microphone"], type="filepath",
545
- label="🎀 Ask your question β€” answer generates automatically when you stop",
546
  show_label=True, streaming=False,
547
  elem_id="qa_audio_input",
548
  )
549
- question_text = gr.Textbox(
550
- placeholder="Or type your question here...",
551
- label="Type instead", lines=1, show_label=True
552
- )
553
  submit_question_btn = gr.Button("πŸ” Get Answer in Narrator's Voice", variant="primary")
554
 
555
  answer_display = gr.HTML(visible=False)
 
542
  with gr.Group(visible=False) as qa_input_group:
543
  question_audio = gr.Audio(
544
  sources=["microphone"], type="filepath",
545
+ label="🎀 Ask your question β€” answer generates when you stop recording",
546
  show_label=True, streaming=False,
547
  elem_id="qa_audio_input",
548
  )
549
+ question_text = gr.Textbox(visible=False)
 
 
 
550
  submit_question_btn = gr.Button("πŸ” Get Answer in Narrator's Voice", variant="primary")
551
 
552
  answer_display = gr.HTML(visible=False)