Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -123,9 +123,9 @@ with gr.Blocks() as app:
|
|
123 |
|
124 |
|
125 |
|
126 |
-
im_btn.click(get_screenshot,[chat_b,im_height,im_width,chatblock,theme,wait_time],img)
|
127 |
-
|
128 |
go=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,client_choice,seed,temp,tokens,top_p,rep_p],chat_b)
|
129 |
-
stop_btn.click(None,None,None,cancels=go)
|
130 |
clear_btn.click(clear_fn,None,[inp,sys_inp,chat_b])
|
131 |
app.queue(default_concurrency_limit=10).launch()
|
|
|
123 |
|
124 |
|
125 |
|
126 |
+
im_go=im_btn.click(get_screenshot,[chat_b,im_height,im_width,chatblock,theme,wait_time],img)
|
127 |
+
chat_sub=chat_inf.submit(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,client_choice,seed,temp,tokens,top_p,rep_p],chat_b)
|
128 |
go=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,client_choice,seed,temp,tokens,top_p,rep_p],chat_b)
|
129 |
+
stop_btn.click(None,None,None,cancels=[go,im_go,chat_sub])
|
130 |
clear_btn.click(clear_fn,None,[inp,sys_inp,chat_b])
|
131 |
app.queue(default_concurrency_limit=10).launch()
|