Update app.py
Browse files
app.py
CHANGED
@@ -776,7 +776,8 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
|
|
776 |
|
777 |
return output_video_path + (json.dumps(locations),)
|
778 |
|
779 |
-
submit.click(
|
|
|
780 |
|
781 |
example_files = [["./examples/streetview.mp4", "vits", blurin, 1, 32, example_coords]]
|
782 |
examples = gr.Examples(examples=example_files, fn=on_submit, cache_examples=True, inputs=[input_video, model_type, blur_in, boffset, bsize, coords], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, depth_video, coords])
|
|
|
776 |
|
777 |
return output_video_path + (json.dumps(locations),)
|
778 |
|
779 |
+
submit.click(None, inputs=None, outputs=None, js=load_model)
|
780 |
+
submit.click(on_submit, inputs=[input_video, model_type, blur_in, boffset, bsize, coords], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, depth_video, coords])
|
781 |
|
782 |
example_files = [["./examples/streetview.mp4", "vits", blurin, 1, 32, example_coords]]
|
783 |
examples = gr.Examples(examples=example_files, fn=on_submit, cache_examples=True, inputs=[input_video, model_type, blur_in, boffset, bsize, coords], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, depth_video, coords])
|