Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
206 |
-
|
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()
|