Update app.py
Browse files
app.py
CHANGED
@@ -458,7 +458,7 @@ load_model="""
|
|
458 |
async()=>{
|
459 |
var intv = setInterval(function(){
|
460 |
if (document.getElementById("output_video").getElementsByTagName("video")) {
|
461 |
-
document.getElementById("model3d").src = document.getElementById("model3d").src.split("
|
462 |
clearInterval(intv);
|
463 |
}
|
464 |
}, 40);
|
@@ -750,7 +750,7 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
|
|
750 |
coords = gr.Textbox(elem_id="coords", value=example_coords, label="Coordinates", interactive=False)
|
751 |
render = gr.Button("Render")
|
752 |
model3d = gr.HTML(value="""
|
753 |
-
<iframe id='model3d' src='https://freeali.se/freealise/transparent_video/' onclick=
|
754 |
""")
|
755 |
input_json.input(show_json, inputs=[input_json], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, coords])
|
756 |
|
|
|
458 |
async()=>{
|
459 |
var intv = setInterval(function(){
|
460 |
if (document.getElementById("output_video").getElementsByTagName("video")) {
|
461 |
+
document.getElementById("model3d").src = document.getElementById("model3d").src.split("?")[0] + "?url=" + document.getElementById("output_video").getElementsByTagName("video")[0].src;
|
462 |
clearInterval(intv);
|
463 |
}
|
464 |
}, 40);
|
|
|
750 |
coords = gr.Textbox(elem_id="coords", value=example_coords, label="Coordinates", interactive=False)
|
751 |
render = gr.Button("Render")
|
752 |
model3d = gr.HTML(value="""
|
753 |
+
<iframe id='model3d' src='https://freeali.se/freealise/transparent_video/' onload='this.contentDocument.body.onclick=fullscreen();' style='position:relative;width:100%;height:320px;'></iframe>
|
754 |
""")
|
755 |
input_json.input(show_json, inputs=[input_json], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, coords])
|
756 |
|