freealise commited on
Commit
41d3ca9
1 Parent(s): 1889e3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -91,12 +91,12 @@ def create_video(frames, fps, type):
91
  return type + "_result.mp4"
92
 
93
 
94
- def infer(url_in,interpolation,fps_output,resize_w):
95
 
96
  fps_output = logscale(fps_output)
97
  # 1. break video into frames and get FPS
98
- break_vid = get_frames(url_in, "vid_input_frame", "origin", resize_w)
99
- frames_list= break_vid[0]
100
  fps = break_vid[1]
101
  print(f"ORIGIN FPS: {fps}")
102
  n_frame = int(15*fps) #limited to 15 seconds
 
91
  return type + "_result.mp4"
92
 
93
 
94
+ def infer(url_in,interpolation,fps_output,resize_n):
95
 
96
  fps_output = logscale(fps_output)
97
  # 1. break video into frames and get FPS
98
+ break_vid = get_frames(url_in, "vid_input_frame", "origin", resize_n.value)
99
+ frames_list = break_vid[0]
100
  fps = break_vid[1]
101
  print(f"ORIGIN FPS: {fps}")
102
  n_frame = int(15*fps) #limited to 15 seconds