Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -153,7 +153,7 @@ def video_clip(program,fps,qual,model_name,denoise_strength,face_enhance,outscal
|
|
153 |
out = f"{uid}/enhanced_vid.mp4"
|
154 |
yield out,out,"Video Complete"
|
155 |
|
156 |
-
def gif_clip(program,fps,qual,model_name,denoise_strength,face_enhance,outscale
|
157 |
_=None
|
158 |
fps=float(fps)
|
159 |
new_video_in = str(f"{uid}-clip.mp4")
|
@@ -363,7 +363,7 @@ with gr.Blocks(css=css) as app:
|
|
363 |
samp_btn.click(run_samp,[choose_prog,fps,qual,model_name,denoise_strength,face_enhance,outscale,frame_targ],[samp_im,gif_stat])
|
364 |
speed_btn.click(update_speed,[hid_box,clip_speed,hid_fps],[outp_vid,hid_box,outp_file])
|
365 |
gif_btn.click(gif_clip,[choose_prog,fps,qual,model_name,denoise_strength,face_enhance,outscale],[gif_show,gif_file,gif_stat])
|
366 |
-
vid_btn.click(
|
367 |
|
368 |
trim_btn.click(trim_vid,[hid_box,start_f,end_f],[out_trim,trim_count])
|
369 |
outp_vid.change(load_video,outp_vid,[frame_count,fps,end_f,hid_box,idx_vid]).then(trim_vid,[hid_box,start_f,end_f],[out_trim,trim_count])
|
|
|
153 |
out = f"{uid}/enhanced_vid.mp4"
|
154 |
yield out,out,"Video Complete"
|
155 |
|
156 |
+
def gif_clip(program,fps,qual,model_name,denoise_strength,face_enhance,outscale):
|
157 |
_=None
|
158 |
fps=float(fps)
|
159 |
new_video_in = str(f"{uid}-clip.mp4")
|
|
|
363 |
samp_btn.click(run_samp,[choose_prog,fps,qual,model_name,denoise_strength,face_enhance,outscale,frame_targ],[samp_im,gif_stat])
|
364 |
speed_btn.click(update_speed,[hid_box,clip_speed,hid_fps],[outp_vid,hid_box,outp_file])
|
365 |
gif_btn.click(gif_clip,[choose_prog,fps,qual,model_name,denoise_strength,face_enhance,outscale],[gif_show,gif_file,gif_stat])
|
366 |
+
vid_btn.click(video_clip,[choose_prog,fps,qual,model_name,denoise_strength,face_enhance,outscale],[gif_show,gif_file,vid_stat])
|
367 |
|
368 |
trim_btn.click(trim_vid,[hid_box,start_f,end_f],[out_trim,trim_count])
|
369 |
outp_vid.change(load_video,outp_vid,[frame_count,fps,end_f,hid_box,idx_vid]).then(trim_vid,[hid_box,start_f,end_f],[out_trim,trim_count])
|