Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -377,7 +377,6 @@ with gr.Blocks(css="constants/styles.css", theme=gr.themes.Soft()) as demo:
|
|
377 |
)
|
378 |
|
379 |
chat_button.click(None, [cur_arxiv_id], [local_data, chatbot], js=OPEN_CHAT_IF)
|
380 |
-
close.click(None, None, None,js=CLOSE_CHAT_IF)
|
381 |
|
382 |
prompt_txtbox.submit(
|
383 |
before_chat_begin, None, [close, reset, regen],
|
@@ -394,7 +393,8 @@ with gr.Blocks(css="constants/styles.css", theme=gr.themes.Soft()) as demo:
|
|
394 |
js=UPDATE_CHAT_HISTORY
|
395 |
)
|
396 |
|
397 |
-
close.click(None, None, None,
|
|
|
398 |
|
399 |
reset.click(
|
400 |
before_chat_begin, None, [close, reset, regen],
|
|
|
377 |
)
|
378 |
|
379 |
chat_button.click(None, [cur_arxiv_id], [local_data, chatbot], js=OPEN_CHAT_IF)
|
|
|
380 |
|
381 |
prompt_txtbox.submit(
|
382 |
before_chat_begin, None, [close, reset, regen],
|
|
|
393 |
js=UPDATE_CHAT_HISTORY
|
394 |
)
|
395 |
|
396 |
+
close.click(None, None, None,js=CLOSE_CHAT_IF)
|
397 |
+
close.click(None, None, None, cancels=[chat_event], concurrency_limit=20, queue=True)
|
398 |
|
399 |
reset.click(
|
400 |
before_chat_begin, None, [close, reset, regen],
|