chansung commited on
Commit
70c07bd
Β·
verified Β·
1 Parent(s): 9acea4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, cancels=[chat_event])
 
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],