Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -379,10 +379,12 @@ with gr.Blocks(css="constants/styles.css", theme=gr.themes.Soft()) as demo:
|
|
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 |
-
|
383 |
before_chat_begin, None, [close, reset, regen],
|
384 |
concurrency_limit=20,
|
385 |
-
)
|
|
|
|
|
386 |
chat_stream,
|
387 |
[cur_arxiv_id, local_data, prompt_txtbox, chat_state],
|
388 |
[prompt_txtbox, chatbot, local_data, close, reset, regen],
|
|
|
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],
|
384 |
concurrency_limit=20,
|
385 |
+
)
|
386 |
+
|
387 |
+
chat_event = prompt_txtbox.sumbit(
|
388 |
chat_stream,
|
389 |
[cur_arxiv_id, local_data, prompt_txtbox, chat_state],
|
390 |
[prompt_txtbox, chatbot, local_data, close, reset, regen],
|