Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -177,7 +177,7 @@ with gr.Blocks(css="style.css", head="""<meta name="theme-color" content="#000">
|
|
177 |
image = gr.Image(
|
178 |
source="canvas", tool="color-sketch", type="pil", image_mode="L",container=False,
|
179 |
invert_colors=True, shape=(512, 512), brush_radius=4, height="100%", width="100%",
|
180 |
-
brush_color="#000000", interactive=True, show_download_button=False, elem_id="input_image", show_label=False
|
181 |
gr.HTML("""<img src="file=assets/drawCta.png" id="draw_cta" alt="draw here image" />""",elem_id="draw_cta_container")
|
182 |
gr.HTML("""<button id="eraser" onclick="return DELETE_SKETCH_FUNCTION(this)">
|
183 |
<span id="eraser_icon"></span>
|
@@ -191,7 +191,7 @@ with gr.Blocks(css="style.css", head="""<meta name="theme-color" content="#000">
|
|
191 |
inputs = [image, item]
|
192 |
outputs = [result]
|
193 |
item.change(fn=run, inputs=inputs, outputs=outputs)
|
194 |
-
image.change(fn=run, inputs=inputs, outputs=outputs)
|
195 |
|
196 |
if __name__ == "__main__":
|
197 |
demo.queue().launch(debug=True)
|
|
|
177 |
image = gr.Image(
|
178 |
source="canvas", tool="color-sketch", type="pil", image_mode="L",container=False,
|
179 |
invert_colors=True, shape=(512, 512), brush_radius=4, height="100%", width="100%",
|
180 |
+
brush_color="#000000", interactive=True, show_download_button=False, elem_id="input_image", show_label=False)
|
181 |
gr.HTML("""<img src="file=assets/drawCta.png" id="draw_cta" alt="draw here image" />""",elem_id="draw_cta_container")
|
182 |
gr.HTML("""<button id="eraser" onclick="return DELETE_SKETCH_FUNCTION(this)">
|
183 |
<span id="eraser_icon"></span>
|
|
|
191 |
inputs = [image, item]
|
192 |
outputs = [result]
|
193 |
item.change(fn=run, inputs=inputs, outputs=outputs)
|
194 |
+
image.change(fn=run, inputs=inputs, outputs=outputs,queue=False)
|
195 |
|
196 |
if __name__ == "__main__":
|
197 |
demo.queue().launch(debug=True)
|