freealise commited on
Commit
37a3b0c
1 Parent(s): 3888c50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(/\\'/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;
 
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, \"&quot;\");
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;