P01yH3dr0n commited on
Commit
77d81a4
1 Parent(s): f5f05d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def control_ui():
72
  with gr.Row():
73
  use_inp = gr.Checkbox(label='启用', value=False)
74
  overlay = gr.Checkbox(label='覆盖原图', value=True)
75
- inp_img = gr.ImageEditor(label="上传图片", value=None, sources=["upload"], interactive=True, type="pil", eraser=False, transforms=None, brush=gr.Brush(default_size=5, colors=["#000000"], color_mode="fixed"))
76
  with gr.Column():
77
  gr.Textbox(value=get_count, label='Usage count', every=10)
78
  save = gr.Checkbox(value=True, label='Always save all generated images')
 
72
  with gr.Row():
73
  use_inp = gr.Checkbox(label='启用', value=False)
74
  overlay = gr.Checkbox(label='覆盖原图', value=True)
75
+ inp_img = gr.ImageEditor(label="上传图片", value=None, sources=["upload"], interactive=True, type="pil", eraser=False, transforms=None, brush="imagemask")
76
  with gr.Column():
77
  gr.Textbox(value=get_count, label='Usage count', every=10)
78
  save = gr.Checkbox(value=True, label='Always save all generated images')