francescoKrnl commited on
Commit
55f0286
1 Parent(s): b287c2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -177,7 +177,8 @@ with gr.Blocks(css="style.css") as demo:
177
  with gr.Column(elem_id="main_block"):
178
  with gr.Row(elem_id="board_row"):
179
  with gr.Group(elem_id="input_image_container", elem_classes="image_container" ):
180
- image = gr.Sketchpad(type="pil", image_mode="L",container=False, height="100%", width="100%", value = empty_input_image, brush = gr.Brush(default_size="4"),
 
181
  # invert_colors=True, shape=(512, 512), brush_radius=4,
182
  interactive=True, show_download_button=True, elem_id="input_image", show_label=False)
183
  gr.HTML("""<img src="file=assets/drawCta.png" id="draw_cta" alt="draw here image" />""",elem_id="draw_cta_container")
 
177
  with gr.Column(elem_id="main_block"):
178
  with gr.Row(elem_id="board_row"):
179
  with gr.Group(elem_id="input_image_container", elem_classes="image_container" ):
180
+ image = gr.Sketchpad(type="pil", image_mode="L",container=False, height="100%", width="100%", value = empty_input_image,
181
+ brush = gr.Brush(default_size="4", colors=["#000000"], color_mode="fixed"),
182
  # invert_colors=True, shape=(512, 512), brush_radius=4,
183
  interactive=True, show_download_button=True, elem_id="input_image", show_label=False)
184
  gr.HTML("""<img src="file=assets/drawCta.png" id="draw_cta" alt="draw here image" />""",elem_id="draw_cta_container")