Spaces:
Building
Building
Update app.py
Browse files
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?
|
|
|
|
|
|
|
|
|
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 |
}
|