freealise commited on
Commit
66fd680
1 Parent(s): ecd01f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -478,7 +478,6 @@ with gr.Blocks(css=css) as demo:
478
  mouse.input(fn=draw_mask, show_progress="hidden", inputs=[gradients, levels, contour, kernel, mouse, output_mask], outputs=[output_mask])
479
  selector = gr.HTML(value="""
480
  <a href='#' id='selector' onclick='this.style.fontWeight=\"bold\";
481
- document.body.appendChild(document.getElementById(\"select_cursor\"));
482
  document.getElementById(\"image_edit\").getElementsByTagName(\"canvas\")[0].oncontextmenu = function(e){e.preventDefault();}
483
  document.getElementById(\"image_edit\").getElementsByTagName(\"canvas\")[0].ondrag = function(e){e.preventDefault();}
484
 
 
478
  mouse.input(fn=draw_mask, show_progress="hidden", inputs=[gradients, levels, contour, kernel, mouse, output_mask], outputs=[output_mask])
479
  selector = gr.HTML(value="""
480
  <a href='#' id='selector' onclick='this.style.fontWeight=\"bold\";
 
481
  document.getElementById(\"image_edit\").getElementsByTagName(\"canvas\")[0].oncontextmenu = function(e){e.preventDefault();}
482
  document.getElementById(\"image_edit\").getElementsByTagName(\"canvas\")[0].ondrag = function(e){e.preventDefault();}
483