Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -285,10 +285,12 @@ with gr.Blocks() as app:
|
|
285 |
def check_load(inp_url,outp_vid,hid_box,start_f,end_f):
|
286 |
if outp_vid == None and inp_url !="":
|
287 |
out_trim,in_vid,trim_count=trim_vid(hid_box,start_f,end_f)
|
288 |
-
elif outp_vid !=None and inp_url == "":
|
289 |
out_trim = None
|
290 |
in_vid=outp_vid
|
291 |
trim_count = ""
|
|
|
|
|
292 |
return out_trim,in_vid,trim_count
|
293 |
#outp_vid.change(echo_fn,outp_vid,[out_trim])
|
294 |
info_btn.click(dl_json,inp_url,info_json)
|
|
|
285 |
def check_load(inp_url,outp_vid,hid_box,start_f,end_f):
|
286 |
if outp_vid == None and inp_url !="":
|
287 |
out_trim,in_vid,trim_count=trim_vid(hid_box,start_f,end_f)
|
288 |
+
elif outp_vid !=None and inp_url == "" and hid_box =="":
|
289 |
out_trim = None
|
290 |
in_vid=outp_vid
|
291 |
trim_count = ""
|
292 |
+
elif outp_vid !=None and inp_url == "" and hid_box !="":
|
293 |
+
out_trim,in_vid,trim_count=trim_vid(hid_box,start_f,end_f)
|
294 |
return out_trim,in_vid,trim_count
|
295 |
#outp_vid.change(echo_fn,outp_vid,[out_trim])
|
296 |
info_btn.click(dl_json,inp_url,info_json)
|