francescoKrnl commited on
Commit
1ae7e57
1 Parent(s): 015e494

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -173,10 +173,9 @@ with gr.Blocks(css="style.css") as demo:
173
  with gr.Column(elem_id="main_block"):
174
  with gr.Row(elem_id="board_row"):
175
  with gr.Group(elem_id="input_image_container", elem_classes="image_container" ):
176
- image = gr.Image(
177
- source="canvas", tool="color-sketch", type="pil", image_mode="L",container=False,
178
- invert_colors=True, shape=(512, 512), brush_radius=4, height="100%", width="100%",
179
- brush_color="#000000", interactive=True, show_download_button=False, elem_id="input_image", show_label=False)
180
  gr.HTML("""<img src="file=assets/drawCta.png" id="draw_cta" alt="draw here image" />""",elem_id="draw_cta_container")
181
  gr.HTML("""<button id="eraser" onclick="return DELETE_SKETCH_FUNCTION(this)">
182
  <span id="eraser_icon"></span>
 
173
  with gr.Column(elem_id="main_block"):
174
  with gr.Row(elem_id="board_row"):
175
  with gr.Group(elem_id="input_image_container", elem_classes="image_container" ):
176
+ image = gr.ImageEditor(sources=(), brush=gr.Brush(colors=["#000000"]), type="pil", image_mode="L",container=False, height="100%", width="100%",
177
+ # invert_colors=True, shape=(512, 512), brush_radius=4,
178
+ interactive=True, show_download_button=False, elem_id="input_image", show_label=False)
 
179
  gr.HTML("""<img src="file=assets/drawCta.png" id="draw_cta" alt="draw here image" />""",elem_id="draw_cta_container")
180
  gr.HTML("""<button id="eraser" onclick="return DELETE_SKETCH_FUNCTION(this)">
181
  <span id="eraser_icon"></span>