Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -169,13 +169,13 @@ with gr.Blocks() as app:
|
|
169 |
return gr.update(visible=False),gr.update(visible=True)
|
170 |
def load_image(url):
|
171 |
return url
|
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()
|
|
|
169 |
return gr.update(visible=False),gr.update(visible=True)
|
170 |
def load_image(url):
|
171 |
return url
|
172 |
+
im_load = 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_load = 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,im_load,vid_load])
|
179 |
|
180 |
#go_btn_url.click(rev_im,inp_url,[html_out])
|
181 |
app.launch()
|