freealise commited on
Commit
e5692ee
1 Parent(s): 6804eb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -448,7 +448,11 @@ def draw_mask(l, t, v, d, evt: gr.EventData):
448
  load_model="""
449
  async(f, c, o)=>{
450
  if (document.getElementById("iframe3D")) {
451
- document.getElementById("iframe3D").src = "index.htm?o=" + encodeURIComponent(o) + "&c=" + encodeURIComponent(c) + "&file=" + f.path;
 
 
 
 
452
  toggleDisplay("model");
453
  }
454
  }
 
448
  load_model="""
449
  async(f, c, o)=>{
450
  if (document.getElementById("iframe3D")) {
451
+ document.getElementById("iframe3D").src = "index.htm?file=" + f.path;
452
+ document.getElementById("iframe3D").onload = function() {
453
+ document.getElementById("iframe3D").contentDocument.getElementById("coords").value = c;
454
+ document.getElementById("iframe3D").contentDocument.getElementById("order").value = o;
455
+ }
456
  toggleDisplay("model");
457
  }
458
  }