Spaces:
Runtime error
Runtime error
Commit
·
848c1a5
1
Parent(s):
2a8fd13
Update app.py
Browse files
app.py
CHANGED
@@ -396,7 +396,8 @@ with gr.Blocks(css="style.css") as demo:
|
|
396 |
n_frames,
|
397 |
run_button
|
398 |
])
|
399 |
-
|
|
|
400 |
|
401 |
run_button.click(fn = edit_with_pnp,
|
402 |
inputs = [input_video,
|
|
|
396 |
n_frames,
|
397 |
run_button
|
398 |
])
|
399 |
+
|
400 |
+
input_video.change(fn = calculate_fps, inputs=[input_video, batch_size], outputs=[frames, batch_size, n_frames], queue=False)
|
401 |
|
402 |
run_button.click(fn = edit_with_pnp,
|
403 |
inputs = [input_video,
|