Omnibus commited on
Commit
1175bab
1 Parent(s): 1d6d097

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -155,6 +155,8 @@ def video_clip(program,fps,qual,model_name,denoise_strength,face_enhance,outscal
155
  def gif_clip(program,fps,qual,model_name,denoise_strength,face_enhance,outscale):
156
  _=None
157
  fps=float(fps)
 
 
158
  new_video_in = str(f"{uid}-clip.mp4")
159
  capture = cv2.VideoCapture(new_video_in)
160
  frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))
 
155
  def gif_clip(program,fps,qual,model_name,denoise_strength,face_enhance,outscale):
156
  _=None
157
  fps=float(fps)
158
+ if program == 'imageio':
159
+ fps=fps*2
160
  new_video_in = str(f"{uid}-clip.mp4")
161
  capture = cv2.VideoCapture(new_video_in)
162
  frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))