Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -738,7 +738,7 @@ with gr.Blocks(css=css) as demo:
|
|
738 |
[chatbot, feedback_textbox, submit_feedback_button])
|
739 |
submit_feedback_button.click(lambda x: gr.update(value=''), [], [feedback_textbox])
|
740 |
|
741 |
-
sample_button.click(
|
742 |
answer_question,[sample_button, chatbot, audio_input], [chatbot])
|
743 |
sample_button1.click(
|
744 |
answer_question, [sample_button1, chatbot, audio_input], [chatbot])
|
@@ -747,7 +747,18 @@ with gr.Blocks(css=css) as demo:
|
|
747 |
sample_button3.click(
|
748 |
answer_question, [sample_button3, chatbot, audio_input], [chatbot])
|
749 |
sample_button4.click(
|
750 |
-
answer_question, [sample_button4, chatbot, audio_input], [chatbot])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
751 |
|
752 |
|
753 |
|
|
|
738 |
[chatbot, feedback_textbox, submit_feedback_button])
|
739 |
submit_feedback_button.click(lambda x: gr.update(value=''), [], [feedback_textbox])
|
740 |
|
741 |
+
"""sample_button.click(
|
742 |
answer_question,[sample_button, chatbot, audio_input], [chatbot])
|
743 |
sample_button1.click(
|
744 |
answer_question, [sample_button1, chatbot, audio_input], [chatbot])
|
|
|
747 |
sample_button3.click(
|
748 |
answer_question, [sample_button3, chatbot, audio_input], [chatbot])
|
749 |
sample_button4.click(
|
750 |
+
answer_question, [sample_button4, chatbot, audio_input], [chatbot])"""
|
751 |
+
sample_button.click(
|
752 |
+
answer_question,[sample_button, chatbot], [chatbot])
|
753 |
+
sample_button1.click(
|
754 |
+
answer_question, [sample_button1, chatbot], [chatbot])
|
755 |
+
sample_button2.click(
|
756 |
+
answer_question, [sample_button2, chatbot], [chatbot])
|
757 |
+
sample_button3.click(
|
758 |
+
answer_question, [sample_button3, chatbot], [chatbot])
|
759 |
+
sample_button4.click(
|
760 |
+
answer_question, [sample_button4, chatbot], [chatbot])
|
761 |
+
|
762 |
|
763 |
|
764 |
|