multimodalart HF staff commited on
Commit
2a8fd13
1 Parent(s): e5293cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -125,7 +125,7 @@ def calculate_fps(input_video, batch_size):
125
  print("total vid duration", total_vid_duration)
126
  print("frames to process", frames_to_process)
127
  print("batch size", batch_size)
128
- return frames, batch_size, frames_to_process, None
129
 
130
  def preprocess_and_invert(input_video,
131
  frames,
@@ -396,7 +396,7 @@ with gr.Blocks(css="style.css") as demo:
396
  n_frames,
397
  run_button
398
  ])
399
- input_video.change(fn = calculate_fps, inputs=[input_video, batch_size], outputs=[batch_size, n_frames, run_button], queue=False)
400
 
401
  run_button.click(fn = edit_with_pnp,
402
  inputs = [input_video,
 
125
  print("total vid duration", total_vid_duration)
126
  print("frames to process", frames_to_process)
127
  print("batch size", batch_size)
128
+ return frames, batch_size, frames_to_process, gr.update(visible=False)
129
 
130
  def preprocess_and_invert(input_video,
131
  frames,
 
396
  n_frames,
397
  run_button
398
  ])
399
+ input_video.change(fn = calculate_fps, inputs=[input_video, batch_size], outputs=[frames, batch_size, n_frame], queue=False)
400
 
401
  run_button.click(fn = edit_with_pnp,
402
  inputs = [input_video,