Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -395,11 +395,13 @@ with gr.Blocks(css="constants/styles.css", theme=gr.themes.Soft()) as demo:
|
|
| 395 |
)
|
| 396 |
|
| 397 |
close.click(
|
| 398 |
-
None, None, None, cancels=[chat_event1, chat_event2]
|
| 399 |
-
).then(
|
| 400 |
None, None, None,js=CLOSE_CHAT_IF
|
| 401 |
)
|
| 402 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
reset.click(
|
| 404 |
before_chat_begin, None, [reset, regen],
|
| 405 |
concurrency_limit=20,
|
|
|
|
| 395 |
)
|
| 396 |
|
| 397 |
close.click(
|
|
|
|
|
|
|
| 398 |
None, None, None,js=CLOSE_CHAT_IF
|
| 399 |
)
|
| 400 |
|
| 401 |
+
close.click(
|
| 402 |
+
None, None, None, cancels=[chat_event1, chat_event2]
|
| 403 |
+
)
|
| 404 |
+
|
| 405 |
reset.click(
|
| 406 |
before_chat_begin, None, [reset, regen],
|
| 407 |
concurrency_limit=20,
|