Omnibus commited on
Commit
cb13d58
1 Parent(s): cd41564

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -202,6 +202,6 @@ with gr.Blocks() as app:
202
  go3=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,client_choice,seed,temp,tokens,top_p,rep_p,hid3],chat_c)
203
  go4=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,client_choice,seed,temp,tokens,top_p,rep_p,hid4],chat_d)
204
 
205
- #stop_btn.click(None,None,None,cancels=[go,im_go,chat_sub])
206
- #clear_btn.click(clear_fn,None,[inp,sys_inp,chat_b])
207
  app.queue(default_concurrency_limit=10).launch()
 
202
  go3=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,client_choice,seed,temp,tokens,top_p,rep_p,hid3],chat_c)
203
  go4=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,client_choice,seed,temp,tokens,top_p,rep_p,hid4],chat_d)
204
 
205
+ stop_btn.click(None,None,None,cancels=[go1,go2,go3,go4])
206
+ clear_btn.click(clear_fn,None,[inp,sys_inp,chat_a,chat_b,chat_c,chat_d])
207
  app.queue(default_concurrency_limit=10).launch()