Update app.py
Browse files
app.py
CHANGED
|
@@ -719,7 +719,7 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
|
|
| 719 |
{"lat": 50.07379496839027, "lng": 14.437148958238538, "heading": 151.93391, "pitch": 2.843050000000005},
|
| 720 |
{"lat": 50.073823157821664, "lng": 14.437124189538856, "heading": 152.95769, "pitch": 4.233024999999998}
|
| 721 |
]"""
|
| 722 |
-
coords = gr.Textbox(elem_id="coords", value=example_coords, label="
|
| 723 |
|
| 724 |
model3d = gr.HTML(value="""
|
| 725 |
<a style='color:white;font-weight:bold' href='https://freeali.se/freealise/transparent_video/' target='_blank'>Open renderer in new tab and upload your video there</a>
|
|
@@ -786,12 +786,12 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
|
|
| 786 |
# Process the video and get the path of the output video
|
| 787 |
output_video_path = make_video(uploaded_video,encoder=model_type,blur_data=blurin,o=boffset,b=bsize)
|
| 788 |
|
| 789 |
-
return output_video_path
|
| 790 |
|
| 791 |
-
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
|
| 792 |
|
| 793 |
example_files = [["./examples/streetview.mp4", "vits", blurin, 1, 32, example_coords]]
|
| 794 |
-
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
|
| 795 |
|
| 796 |
|
| 797 |
if __name__ == '__main__':
|
|
|
|
| 719 |
{"lat": 50.07379496839027, "lng": 14.437148958238538, "heading": 151.93391, "pitch": 2.843050000000005},
|
| 720 |
{"lat": 50.073823157821664, "lng": 14.437124189538856, "heading": 152.95769, "pitch": 4.233024999999998}
|
| 721 |
]"""
|
| 722 |
+
coords = gr.Textbox(elem_id="coords", value=example_coords, label="Coordinates", interactive=False)
|
| 723 |
|
| 724 |
model3d = gr.HTML(value="""
|
| 725 |
<a style='color:white;font-weight:bold' href='https://freeali.se/freealise/transparent_video/' target='_blank'>Open renderer in new tab and upload your video there</a>
|
|
|
|
| 786 |
# Process the video and get the path of the output video
|
| 787 |
output_video_path = make_video(uploaded_video,encoder=model_type,blur_data=blurin,o=boffset,b=bsize)
|
| 788 |
|
| 789 |
+
return output_video_path
|
| 790 |
|
| 791 |
+
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])
|
| 792 |
|
| 793 |
example_files = [["./examples/streetview.mp4", "vits", blurin, 1, 32, example_coords]]
|
| 794 |
+
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])
|
| 795 |
|
| 796 |
|
| 797 |
if __name__ == '__main__':
|