Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -607,7 +607,7 @@ with gr.Blocks(css=css) as demo:
|
|
607 |
with gr.Accordion(label="Locations", open=False):
|
608 |
offset = gr.HTML(value="""<label for='displace'>Displace</label><input id='displace' type='range' style='width:256px;height:1em;' value='0' min='0' max='255' step='1' oninput='
|
609 |
try {
|
610 |
-
var txt = document.getElementById(\"coords\").getElementsByTagName(\"textarea\")[0].value.replace(
|
611 |
alert(txt);
|
612 |
var json = JSON.parse(txt);
|
613 |
BABYLON.Engine.LastCreatedScene.getNodes()[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)+1].position.x = this.value * json[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)].lat;
|
|
|
607 |
with gr.Accordion(label="Locations", open=False):
|
608 |
offset = gr.HTML(value="""<label for='displace'>Displace</label><input id='displace' type='range' style='width:256px;height:1em;' value='0' min='0' max='255' step='1' oninput='
|
609 |
try {
|
610 |
+
var txt = document.getElementById(\"coords\").getElementsByTagName(\"textarea\")[0].value.replace(/\'/g, \""\");
|
611 |
alert(txt);
|
612 |
var json = JSON.parse(txt);
|
613 |
BABYLON.Engine.LastCreatedScene.getNodes()[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)+1].position.x = this.value * json[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)].lat;
|