Redmind commited on
Commit
315940e
·
verified ·
1 Parent(s): 3ca0660

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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, elem_classes="gr-button")
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_classes="gr-button",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])
 
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])