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 |
-
|
| 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>
|
|
@@ -783,7 +783,7 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
|
|
| 783 |
# Process the video and get the path of the output video
|
| 784 |
output_video_path = make_video(uploaded_video,encoder=model_type,blur_data=blurin,o=boffset,b=bsize)
|
| 785 |
|
| 786 |
-
return output_video_path + (vtt[
|
| 787 |
|
| 788 |
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, coords])
|
| 789 |
|
|
|
|
| 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.File(elem_id="coords", value=example_coords, label="Alignment", 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>
|
|
|
|
| 783 |
# Process the video and get the path of the output video
|
| 784 |
output_video_path = make_video(uploaded_video,encoder=model_type,blur_data=blurin,o=boffset,b=bsize)
|
| 785 |
|
| 786 |
+
return output_video_path + (vtt[0:-2],) #(json.dumps(locations),)
|
| 787 |
|
| 788 |
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, coords])
|
| 789 |
|