Spaces:
Runtime error
Runtime error
Commit
·
2a8fd13
1
Parent(s):
e5293cf
Update app.py
Browse files
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,
|
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=[
|
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,
|