Spaces:
Sleeping
Sleeping
change brush size
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ with gr.Blocks(css=css, elem_id="demo-container") as demo:
|
|
73 |
with gr.Row():
|
74 |
with gr.Column():
|
75 |
#mode must be RGBA
|
76 |
-
image = gr.ImageEditor(height=800,sources=['upload','clipboard'],transforms=[],image_mode='RGBA', layers=False, elem_id="Foreground", type="pil", label="Foreground",brush=gr.Brush(colors=["#
|
77 |
pick=gr.ColorPicker(label="color",value="#888",info="ImageEditor color is broken,pick color from here.reselect paint-tool and draw.")
|
78 |
pick.change(fn=color_changed,inputs=[pick],outputs=[image])
|
79 |
|
|
|
73 |
with gr.Row():
|
74 |
with gr.Column():
|
75 |
#mode must be RGBA
|
76 |
+
image = gr.ImageEditor(height=800,sources=['upload','clipboard'],transforms=[],image_mode='RGBA', layers=False, elem_id="Foreground", type="pil", label="Foreground",brush=gr.Brush(colors=["#808080"],default_size=50, color_mode="fixed"))
|
77 |
pick=gr.ColorPicker(label="color",value="#888",info="ImageEditor color is broken,pick color from here.reselect paint-tool and draw.")
|
78 |
pick.change(fn=color_changed,inputs=[pick],outputs=[image])
|
79 |
|