chansung commited on
Commit
a71a6ca
β€’
1 Parent(s): 6f8c165

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- chat_event = prompt_txtbox.submit(
383
  before_chat_begin, None, [close, reset, regen],
384
  concurrency_limit=20,
385
- ).then(
 
 
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],