Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -156,7 +156,8 @@ 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
|
|
|
|
| 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))
|
|
|
|
| 156 |
_=None
|
| 157 |
fps=float(fps)
|
| 158 |
if program == 'imageio':
|
| 159 |
+
print (f"adjusting fps from: {fps} to: {fps/2}")
|
| 160 |
+
fps=fps/2
|
| 161 |
new_video_in = str(f"{uid}-clip.mp4")
|
| 162 |
capture = cv2.VideoCapture(new_video_in)
|
| 163 |
frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))
|