Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -172,9 +172,10 @@ with gr.Blocks() as app:
|
|
172 |
load_im_btn.click(load_image,inp_url,inp_im)
|
173 |
next_btn.click(process_vid,[inp_vid,hid_box,every_n],[html_out,stat_box,hid_box])
|
174 |
vid_url_btn.click(dl,vid_url,[inp_vid,html_out,stat_box,hid_box])
|
175 |
-
source_tog.change(shuf,[source_tog],[im_box,vid_box])
|
176 |
#inp_im.change(process_im,[inp_im,inp_url],[inp_url])
|
177 |
-
go_btn_vid.click(process_vid,[inp_vid,hid_box,every_n],[html_out,stat_box,hid_box])
|
178 |
-
go_btn_im.click(rev_im,inp_im,[html_out])
|
|
|
|
|
179 |
#go_btn_url.click(rev_im,inp_url,[html_out])
|
180 |
app.launch()
|
|
|
172 |
load_im_btn.click(load_image,inp_url,inp_im)
|
173 |
next_btn.click(process_vid,[inp_vid,hid_box,every_n],[html_out,stat_box,hid_box])
|
174 |
vid_url_btn.click(dl,vid_url,[inp_vid,html_out,stat_box,hid_box])
|
|
|
175 |
#inp_im.change(process_im,[inp_im,inp_url],[inp_url])
|
176 |
+
vid_proc = go_btn_vid.click(process_vid,[inp_vid,hid_box,every_n],[html_out,stat_box,hid_box])
|
177 |
+
im_proc = go_btn_im.click(rev_im,inp_im,[html_out])
|
178 |
+
source_tog.change(shuf,[source_tog],[im_box,vid_box],cancels=[vid_proc,im_proc])
|
179 |
+
|
180 |
#go_btn_url.click(rev_im,inp_url,[html_out])
|
181 |
app.launch()
|