Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -626,17 +626,18 @@ with gr.Blocks(css=css) as demo:
|
|
626 |
|
627 |
# Process the video and get the path of the output video
|
628 |
output_video_path = make_video(uploaded_video,encoder=model_type)
|
|
|
629 |
|
630 |
return output_video_path
|
631 |
|
632 |
-
submit.click(on_submit, inputs=[input_video, model_type, coords], outputs=[processed_video, processed_zip, output_frame, output_depth])
|
633 |
render.click(partial(get_mesh), inputs=[output_frame, output_depth, blur_in, load_all], outputs=[result])
|
634 |
|
635 |
example_files = os.listdir('examples')
|
636 |
example_files.sort()
|
637 |
example_files = [os.path.join('examples', filename) for filename in example_files]
|
638 |
|
639 |
-
examples = gr.Examples(examples=example_files, inputs=[input_video], outputs=[processed_video, processed_zip, output_frame, output_depth], fn=on_submit, cache_examples=True)
|
640 |
|
641 |
|
642 |
if __name__ == '__main__':
|
|
|
626 |
|
627 |
# Process the video and get the path of the output video
|
628 |
output_video_path = make_video(uploaded_video,encoder=model_type)
|
629 |
+
output_video_path.append(locations)
|
630 |
|
631 |
return output_video_path
|
632 |
|
633 |
+
submit.click(on_submit, inputs=[input_video, model_type, coords], outputs=[processed_video, processed_zip, output_frame, output_depth, coords])
|
634 |
render.click(partial(get_mesh), inputs=[output_frame, output_depth, blur_in, load_all], outputs=[result])
|
635 |
|
636 |
example_files = os.listdir('examples')
|
637 |
example_files.sort()
|
638 |
example_files = [os.path.join('examples', filename) for filename in example_files]
|
639 |
|
640 |
+
examples = gr.Examples(examples=example_files, inputs=[input_video], outputs=[processed_video, processed_zip, output_frame, output_depth, coords], fn=on_submit, cache_examples=True)
|
641 |
|
642 |
|
643 |
if __name__ == '__main__':
|