Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -119,8 +119,8 @@ with gr.Blocks() as demo:
|
|
119 |
submit_btn = gr.Button(value="Send")
|
120 |
|
121 |
# Interaction logic
|
122 |
-
textbox.submit(user_ask, inputs=[state, chatbot1, chatbot2, textbox], outputs=[state, chatbot1, chatbot2])
|
123 |
-
submit_btn.click(user_ask, inputs=[state, chatbot1, chatbot2, textbox], outputs=[state, chatbot1, chatbot2])
|
124 |
upvote_btn_a.click(vote_up_model, inputs=[state, chatbot1], outputs=[chatbot1])
|
125 |
upvote_btn_b.click(vote_up_model, inputs=[state, chatbot2], outputs=[chatbot2])
|
126 |
|
|
|
119 |
submit_btn = gr.Button(value="Send")
|
120 |
|
121 |
# Interaction logic
|
122 |
+
textbox.submit(user_ask, inputs=[state, chatbot1, chatbot2, textbox], outputs=[state, chatbot1, chatbot2,textbox])
|
123 |
+
submit_btn.click(user_ask, inputs=[state, chatbot1, chatbot2, textbox], outputs=[state, chatbot1, chatbot2,textbox])
|
124 |
upvote_btn_a.click(vote_up_model, inputs=[state, chatbot1], outputs=[chatbot1])
|
125 |
upvote_btn_b.click(vote_up_model, inputs=[state, chatbot2], outputs=[chatbot2])
|
126 |
|