John Ho commited on
Commit
d8040be
·
1 Parent(s): cfd2182

updated kwargs parsing in calc_timeout_duration

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,9 +130,9 @@ def frames_to_vid(pil_frames, output_path: str, vid_fps: int, vid_w: int, vid_h:
130
  return output_path
131
 
132
 
133
- def calc_timeout_duration(vid_file, *args):
134
  sig = inspect.signature(video_inference)
135
- bound = sig.bind(vid_file, *args)
136
  bound.apply_defaults()
137
  return bound.arguments.get("timeout_duration", 60)
138
 
 
130
  return output_path
131
 
132
 
133
+ def calc_timeout_duration(vid_file, *args, **kwargs):
134
  sig = inspect.signature(video_inference)
135
+ bound = sig.bind(vid_file, *args, **kwargs)
136
  bound.apply_defaults()
137
  return bound.arguments.get("timeout_duration", 60)
138