Update app.py
Browse files
app.py
CHANGED
@@ -261,6 +261,6 @@ with gr.Blocks() as app:
|
|
261 |
chat_sub=inp.submit(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
|
262 |
go=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
|
263 |
|
264 |
-
stop_btn.click(None,None,None,cancels=[go,
|
265 |
clear_btn.click(clear_fn,None,[inp,sys_inp,chat_b,memory])
|
266 |
app.queue(default_concurrency_limit=10).launch()
|
|
|
261 |
chat_sub=inp.submit(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
|
262 |
go=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
|
263 |
|
264 |
+
stop_btn.click(None,None,None,cancels=[go,chat_sub])
|
265 |
clear_btn.click(clear_fn,None,[inp,sys_inp,chat_b,memory])
|
266 |
app.queue(default_concurrency_limit=10).launch()
|