Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def dl(inp):
|
|
29 |
except Exception as e:
|
30 |
print (e)
|
31 |
#out = f'{e}'
|
32 |
-
return out
|
33 |
|
34 |
def process_vid(file,cur_frame,every_n):
|
35 |
new_video_in = str(file)
|
@@ -159,7 +159,7 @@ with gr.Blocks() as app:
|
|
159 |
if tog == "Video":
|
160 |
return gr.update(visible=False),gr.update(visible=False),gr.update(visible=True)
|
161 |
next_btn.click(process_vid,[inp_vid,hid_box,every_n],[html_out,stat_box,hid_box])
|
162 |
-
vid_url_btn.click(dl,vid_url,inp_vid)
|
163 |
source_tog.change(shuf,[source_tog],[url_box,im_box,vid_box])
|
164 |
inp_im.change(process_im,inp_im,[inp_url])
|
165 |
go_btn_vid.click(process_vid,[inp_vid,hid_box,every_n],[html_out,stat_box,hid_box])
|
|
|
29 |
except Exception as e:
|
30 |
print (e)
|
31 |
#out = f'{e}'
|
32 |
+
return out,gr.HTML(""),"",""
|
33 |
|
34 |
def process_vid(file,cur_frame,every_n):
|
35 |
new_video_in = str(file)
|
|
|
159 |
if tog == "Video":
|
160 |
return gr.update(visible=False),gr.update(visible=False),gr.update(visible=True)
|
161 |
next_btn.click(process_vid,[inp_vid,hid_box,every_n],[html_out,stat_box,hid_box])
|
162 |
+
vid_url_btn.click(dl,vid_url,[inp_vid,html_out,stat_box,hid_box])
|
163 |
source_tog.change(shuf,[source_tog],[url_box,im_box,vid_box])
|
164 |
inp_im.change(process_im,inp_im,[inp_url])
|
165 |
go_btn_vid.click(process_vid,[inp_vid,hid_box,every_n],[html_out,stat_box,hid_box])
|