francescoKrnl commited on
Commit
5f5c0dd
1 Parent(s): 38b9539

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -170,17 +170,14 @@ with gr.Blocks(css="style.css") as demo:
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" />
174
- <button id="eraser" onclick="return DELETE_SKETCH_FUNCTION(this)">
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">
182
- # <button id="fullscreen" onclick="document.body.querySelector('.contain').requestFullscreen();" class="fullscreen" title="fullscreen"></button>
183
- # </div>""")
184
 
185
  demo.load(None,None,None,_js=scripts)
186
  inputs = [image, item]
 
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" />""",elem_id="draw_cta_container")
174
+ gr.HTML("""<button id="eraser" onclick="return DELETE_SKETCH_FUNCTION(this)">
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
 
182
  demo.load(None,None,None,_js=scripts)
183
  inputs = [image, item]