freealise commited on
Commit
bc44871
1 Parent(s): a510b3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -379,8 +379,8 @@ with gr.Blocks(css=css) as demo:
379
  pl_a[i] = parseInt(pl_a[i]) * 2 + 1;
380
  }
381
  document.getElementsByTagName(\"textarea\")[1].value = pl_a.join(\" \");
382
- var evt = document.createEvent('Event');
383
- evt.initEvent('input', true, false);
384
  document.getElementsByTagName(\"textarea\")[1].dispatchEvent(evt);
385
  this.style.borderBottom = \"1px dotted black\";
386
  }
 
379
  pl_a[i] = parseInt(pl_a[i]) * 2 + 1;
380
  }
381
  document.getElementsByTagName(\"textarea\")[1].value = pl_a.join(\" \");
382
+ var evt = document.createEvent(\"Event\");
383
+ evt.initEvent(\"input\", true, false);
384
  document.getElementsByTagName(\"textarea\")[1].dispatchEvent(evt);
385
  this.style.borderBottom = \"1px dotted black\";
386
  }