Dagfinn1962 commited on
Commit
337d5ff
1 Parent(s): 418e706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -152,15 +152,17 @@ with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
152
  )
153
 
154
  submit_event = msg.submit(
155
- fn=conversation.user_turn,
156
- inputs=[msg, chatbot],
157
- outputs=[msg, chatbot],
158
- queue=False,
159
- ).then(
160
- fn=conversation.bot_turn,
161
- inputs=[system, chatbot, openai_key],
162
- outputs=[chatbot],
163
- queue=True,
 
 
164
  )
165
  submit_click_event = submit.click(
166
  fn=conversation.user_turn,
 
152
  )
153
 
154
  submit_event = msg.submit(
155
+ fn=conversation.user_turn,
156
+ inputs=[msg],
157
+ outputs=[msg, chatbot],
158
+ queue=False,
159
+ ).then(
160
+ fn=conversation.bot_turn,
161
+ inputs=[system, chatbot, openai_key],
162
+ outputs=[chatbot],
163
+ queue=True,
164
+ )
165
+
166
  )
167
  submit_click_event = submit.click(
168
  fn=conversation.user_turn,