francescoKrnl commited on
Commit
09be82c
1 Parent(s): 8285088

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -167,7 +167,7 @@ with gr.Blocks(css="style.css") as demo:
167
  with gr.Row(elem_id="board_row"):
168
  with gr.Group(elem_id="input_image_container", elem_classes="image_container" ):
169
  image = gr.Image(
170
- source="canvas", tool="color-sketch", type="pil", image_mode="L",
171
  invert_colors=True, shape=(512, 512), brush_radius=4, height="100%", width="100%",
172
  brush_color="#000000", interactive=True, show_download_button=False, elem_id="input_image", show_label=False)
173
  gr.HTML("""<img src="assets/drawCta.png" id="draw_cta" alt="draw here image" />
@@ -175,7 +175,7 @@ with gr.Blocks(css="style.css") as demo:
175
  <span id="eraser_icon"></span>
176
  </button>""",elem_id="eraser_container")
177
  with gr.Group(elem_id="output_image_container", elem_classes="image_container"):
178
- result = gr.Image(label="Result", height="100%", width="100%", elem_id="output_image", show_label=False, show_download_button=True)
179
  with gr.Row(elem_id="radio_row"):
180
  item = gr.Radio(choices=ITEMS_NAMES, value=DEFAULT_ITEM_NAME, show_label=False, container=False)
181
  # gr.HTML("""<div id="footer_block">
 
167
  with gr.Row(elem_id="board_row"):
168
  with gr.Group(elem_id="input_image_container", elem_classes="image_container" ):
169
  image = gr.Image(
170
+ source="canvas", tool="color-sketch", type="pil", image_mode="L",container=False,
171
  invert_colors=True, shape=(512, 512), brush_radius=4, height="100%", width="100%",
172
  brush_color="#000000", interactive=True, show_download_button=False, elem_id="input_image", show_label=False)
173
  gr.HTML("""<img src="assets/drawCta.png" id="draw_cta" alt="draw here image" />
 
175
  <span id="eraser_icon"></span>
176
  </button>""",elem_id="eraser_container")
177
  with gr.Group(elem_id="output_image_container", elem_classes="image_container"):
178
+ result = gr.Image(label="Result", height="100%", width="100%", elem_id="output_image", show_label=False, show_download_button=True,container=False,)
179
  with gr.Row(elem_id="radio_row"):
180
  item = gr.Radio(choices=ITEMS_NAMES, value=DEFAULT_ITEM_NAME, show_label=False, container=False)
181
  # gr.HTML("""<div id="footer_block">