Akjava commited on
Commit
1d632a0
·
1 Parent(s): b50964f

add gray color

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -111,6 +111,7 @@ def process_images(image,replace_image=None,replace_image_need_crop=False,box_ty
111
  color_map={
112
  "black":[0,0,0,1],
113
  "white":[255,255,255,1],
 
114
  "red":[255,0,0,1],
115
  "brown":[92,33,31,1],
116
  "pink":[255,192,203,1],
@@ -265,7 +266,7 @@ with gr.Blocks(css=css, elem_id="demo-container") as demo:
265
  filter_value = gr.Dropdown(label="Filter",value="None",choices=["Blur","Smooth More","Smooth","None","Sharpen","Edge Enhance","Edge Enhance More"])
266
  with row2:
267
 
268
- fill_color = gr.Dropdown(label="fill color",choices=["black","white","red","brown","pink","custom"],value="pink")
269
  custom_color = gr.ColorPicker(label="custom color",value="rgba(250, 218, 205, 1)")
270
 
271
  replace_image.change(update_button_label,replace_image,[btn1,btn2,row1,row2])#margin_percent
 
111
  color_map={
112
  "black":[0,0,0,1],
113
  "white":[255,255,255,1],
114
+ "gray":[127,127,127,1],
115
  "red":[255,0,0,1],
116
  "brown":[92,33,31,1],
117
  "pink":[255,192,203,1],
 
266
  filter_value = gr.Dropdown(label="Filter",value="None",choices=["Blur","Smooth More","Smooth","None","Sharpen","Edge Enhance","Edge Enhance More"])
267
  with row2:
268
 
269
+ fill_color = gr.Dropdown(label="fill color",choices=["black","white","gray","red","brown","pink","custom"],value="gray")
270
  custom_color = gr.ColorPicker(label="custom color",value="rgba(250, 218, 205, 1)")
271
 
272
  replace_image.change(update_button_label,replace_image,[btn1,btn2,row1,row2])#margin_percent