chansung commited on
Commit
ed4b645
β€’
1 Parent(s): d5c7435

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -395,11 +395,13 @@ with gr.Blocks(css="constants/styles.css", theme=gr.themes.Soft()) as demo:
395
  )
396
 
397
  close.click(
398
- None, None, None, cancels=[chat_event1, chat_event2]
399
- ).then(
400
  None, None, None,js=CLOSE_CHAT_IF
401
  )
402
 
 
 
 
 
403
  reset.click(
404
  before_chat_begin, None, [reset, regen],
405
  concurrency_limit=20,
 
395
  )
396
 
397
  close.click(
 
 
398
  None, None, None,js=CLOSE_CHAT_IF
399
  )
400
 
401
+ close.click(
402
+ None, None, None, cancels=[chat_event1, chat_event2]
403
+ )
404
+
405
  reset.click(
406
  before_chat_begin, None, [reset, regen],
407
  concurrency_limit=20,