freealise commited on
Commit
1615ef1
·
verified ·
1 Parent(s): b237158

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("#")[0] + "#" + document.getElementById("output_video").getElementsByTagName("video")[0].src;
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='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
 
 
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