Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
337d5ff
1
Parent(s):
418e706
Update app.py
Browse files
app.py
CHANGED
@@ -152,15 +152,17 @@ with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
|
|
152 |
)
|
153 |
|
154 |
submit_event = msg.submit(
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
|
|
|
|
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,
|