freealise commited on
Commit
a510b3e
1 Parent(s): 3dbec8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -270,6 +270,7 @@ def get_mesh(image, depth):
270
  def blur_image(image, depth, blur_data):
271
  fnum = frame_selected
272
  blur_a = blur_data.split()
 
273
 
274
  blur_frame = image[fnum][0].copy()
275
  j = 0
@@ -378,6 +379,9 @@ with gr.Blocks(css=css) as demo:
378
  pl_a[i] = parseInt(pl_a[i]) * 2 + 1;
379
  }
380
  document.getElementsByTagName(\"textarea\")[1].value = pl_a.join(\" \");
 
 
 
381
  this.style.borderBottom = \"1px dotted black\";
382
  }
383
  this.onpointerleave = this.onpointerup;
 
270
  def blur_image(image, depth, blur_data):
271
  fnum = frame_selected
272
  blur_a = blur_data.split()
273
+ print(f'blur data {blur_data}')
274
 
275
  blur_frame = image[fnum][0].copy()
276
  j = 0
 
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
  }
387
  this.onpointerleave = this.onpointerup;