Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -596,9 +596,9 @@ def answer_question(user_question, chatbot, audio=None):
|
|
| 596 |
return gr.update(value=chatbot)
|
| 597 |
# response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()
|
| 598 |
# return response_text
|
|
|
|
| 599 |
|
| 600 |
-
|
| 601 |
-
css = """
|
| 602 |
.gradio-container {
|
| 603 |
width: 90%; /* Set the width as a percentage of the viewport */
|
| 604 |
max-width: 1200px; /* Optional: Set a maximum width */
|
|
@@ -740,12 +740,12 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:#css=css) as demo:
|
|
| 740 |
message = gr.Textbox(show_label=False, container=False, placeholder="Please enter your question")
|
| 741 |
with gr.Row():
|
| 742 |
feedback_textbox = gr.Textbox(visible=False, show_label=False,container=False, placeholder = "Please enter your feedback.")
|
| 743 |
-
submit_feedback_button = gr.Button("Submit Feedback", visible=False
|
| 744 |
with gr.Column(scale=1):
|
| 745 |
with gr.Row():
|
| 746 |
#audio_input = gr.Audio(sources=["microphone"], show_label=False, container=False,
|
| 747 |
# waveform_options=gr.WaveformOptions(show_controls=False))
|
| 748 |
-
button = gr.Button("Submit",
|
| 749 |
#gr.ClearButton(message, elem_classes="gr-button", elem_id="clear")
|
| 750 |
|
| 751 |
#button.click(answer_question, [message, chatbot, audio_input], [chatbot])
|
|
|
|
| 596 |
return gr.update(value=chatbot)
|
| 597 |
# response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()
|
| 598 |
# return response_text
|
| 599 |
+
"""
|
| 600 |
|
| 601 |
+
css =
|
|
|
|
| 602 |
.gradio-container {
|
| 603 |
width: 90%; /* Set the width as a percentage of the viewport */
|
| 604 |
max-width: 1200px; /* Optional: Set a maximum width */
|
|
|
|
| 740 |
message = gr.Textbox(show_label=False, container=False, placeholder="Please enter your question")
|
| 741 |
with gr.Row():
|
| 742 |
feedback_textbox = gr.Textbox(visible=False, show_label=False,container=False, placeholder = "Please enter your feedback.")
|
| 743 |
+
submit_feedback_button = gr.Button("Submit Feedback", visible=False)
|
| 744 |
with gr.Column(scale=1):
|
| 745 |
with gr.Row():
|
| 746 |
#audio_input = gr.Audio(sources=["microphone"], show_label=False, container=False,
|
| 747 |
# waveform_options=gr.WaveformOptions(show_controls=False))
|
| 748 |
+
button = gr.Button("Submit",elem_id="submit")
|
| 749 |
#gr.ClearButton(message, elem_classes="gr-button", elem_id="clear")
|
| 750 |
|
| 751 |
#button.click(answer_question, [message, chatbot, audio_input], [chatbot])
|