Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -616,6 +616,12 @@ css = """
|
|
| 616 |
/* Adjust the width as needed */
|
| 617 |
overflow-y: auto; /* Add scroll if the content exceeds the height */
|
| 618 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 619 |
.gr-button {
|
| 620 |
height: 40px; /* Adjust the height as needed */
|
| 621 |
width:100px;
|
|
@@ -724,8 +730,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 724 |
with gr.Row():
|
| 725 |
#audio_input = gr.Audio(sources=["microphone"], show_label=False, container=False,
|
| 726 |
# waveform_options=gr.WaveformOptions(show_controls=False))
|
| 727 |
-
button = gr.Button("Submit", elem_classes="gr-button")
|
| 728 |
-
gr.ClearButton(message, elem_classes="gr-button")
|
| 729 |
|
| 730 |
#button.click(answer_question, [message, chatbot, audio_input], [chatbot])
|
| 731 |
button.click(answer_question, [message, chatbot], [chatbot])
|
|
|
|
| 616 |
/* Adjust the width as needed */
|
| 617 |
overflow-y: auto; /* Add scroll if the content exceeds the height */
|
| 618 |
}
|
| 619 |
+
|
| 620 |
+
#submit, #clear {
|
| 621 |
+
display: inline-block;
|
| 622 |
+
margin-right: 10px;
|
| 623 |
+
}
|
| 624 |
+
|
| 625 |
.gr-button {
|
| 626 |
height: 40px; /* Adjust the height as needed */
|
| 627 |
width:100px;
|
|
|
|
| 730 |
with gr.Row():
|
| 731 |
#audio_input = gr.Audio(sources=["microphone"], show_label=False, container=False,
|
| 732 |
# waveform_options=gr.WaveformOptions(show_controls=False))
|
| 733 |
+
button = gr.Button("Submit", elem_classes="gr-button",elem_id="submit")
|
| 734 |
+
gr.ClearButton(message, elem_classes="gr-button", elem_id="clear")
|
| 735 |
|
| 736 |
#button.click(answer_question, [message, chatbot, audio_input], [chatbot])
|
| 737 |
button.click(answer_question, [message, chatbot], [chatbot])
|