rwitz commited on
Commit
5345273
1 Parent(s): 83d0c0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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