freealise commited on
Commit
11a84e1
1 Parent(s): c1e3d19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -728,7 +728,7 @@ async()=>{
728
  console.log('Hi');
729
 
730
  const chart = document.getElementById('chart');
731
- const blur_in = document.getElementById('blur_in');
732
  var md = false;
733
  var xold = 128;
734
  var yold = 32;
@@ -936,11 +936,10 @@ with gr.Blocks(css=css, js=js) as demo:
936
  processed_video = gr.Video(label="Output Video", format="mp4", interactive=False)
937
  processed_zip = gr.File(label="Output Archive", interactive=False)
938
  result = gr.Model3D(label="3D Mesh", clear_color=[0.5, 0.5, 0.5, 0.0], camera_position=[0, 90, 0], zoom_speed=2.0, pan_speed=2.0, interactive=True, elem_id="model3D") #, display_mode="point_cloud"
939
- svg_in = gr.HTML(elem_id="chart_c", value="""<div id='chart' onpointermove='window.drawLine(event.clientX, event.clientY);' onpointerdown='window.pointerDown(event.clientX, event.clientY);' onpointerup='window.pointerUp();' onpointerleave='window.pointerUp();' onpointercancel='window.pointerUp();' onclick='window.resetLine();'></div>
940
  <style>
941
  body {
942
  user-select: none;
943
- touch-action: none;
944
  }
945
  #chart hr {
946
  width: 1px;
@@ -959,10 +958,6 @@ with gr.Blocks(css=css, js=js) as demo:
959
  width:256px;
960
  height:64px;
961
  background-color:#808080;
962
- }
963
- #blur_in textarea {
964
- width:256px;
965
- height:16em;
966
  }
967
  </style>
968
  """)
 
728
  console.log('Hi');
729
 
730
  const chart = document.getElementById('chart');
731
+ const blur_in = document.getElementById('blur_in').grtElementsByTagName('textarea')[0];
732
  var md = false;
733
  var xold = 128;
734
  var yold = 32;
 
936
  processed_video = gr.Video(label="Output Video", format="mp4", interactive=False)
937
  processed_zip = gr.File(label="Output Archive", interactive=False)
938
  result = gr.Model3D(label="3D Mesh", clear_color=[0.5, 0.5, 0.5, 0.0], camera_position=[0, 90, 0], zoom_speed=2.0, pan_speed=2.0, interactive=True, elem_id="model3D") #, display_mode="point_cloud"
939
+ chart_c = gr.HTML(elem_id="chart_c", value="""<div id='chart' onpointermove='window.drawLine(event.clientX, event.clientY);' onpointerdown='window.pointerDown(event.clientX, event.clientY);' onpointerup='window.pointerUp();' onpointerleave='window.pointerUp();' onpointercancel='window.pointerUp();' onclick='window.resetLine();'></div>
940
  <style>
941
  body {
942
  user-select: none;
 
943
  }
944
  #chart hr {
945
  width: 1px;
 
958
  width:256px;
959
  height:64px;
960
  background-color:#808080;
 
 
 
 
961
  }
962
  </style>
963
  """)