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