Spaces:
Paused
Paused
Commit Β·
1769a75
1
Parent(s): df70548
ui: remove text input box from Q&A - voice only
Browse filesCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
|
| 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)
|