Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ with gr.Blocks() as demo:
|
|
| 14 |
msg = gr.Textbox()
|
| 15 |
clear = gr.Button("Clear")
|
| 16 |
|
| 17 |
-
def user(user_message, history):
|
| 18 |
return "", history + [[user_message, None]]
|
| 19 |
|
| 20 |
def bot(history):
|
|
@@ -23,7 +23,7 @@ with gr.Blocks() as demo:
|
|
| 23 |
time.sleep(1)
|
| 24 |
return history
|
| 25 |
|
| 26 |
-
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
|
| 27 |
bot, chatbot, chatbot
|
| 28 |
)
|
| 29 |
clear.click(lambda: None, None, chatbot, queue=False)
|
|
|
|
| 14 |
msg = gr.Textbox()
|
| 15 |
clear = gr.Button("Clear")
|
| 16 |
|
| 17 |
+
def user(user_message, url_params, history):
|
| 18 |
return "", history + [[user_message, None]]
|
| 19 |
|
| 20 |
def bot(history):
|
|
|
|
| 23 |
time.sleep(1)
|
| 24 |
return history
|
| 25 |
|
| 26 |
+
msg.submit(user, inputs=[msg, url_params, chatbot], outputs=[msg, chatbot], queue=False).then(
|
| 27 |
bot, chatbot, chatbot
|
| 28 |
)
|
| 29 |
clear.click(lambda: None, None, chatbot, queue=False)
|