Spaces:
Runtime error
Runtime error
root
commited on
Commit
•
8667d2c
1
Parent(s):
bd5e80c
Front-Back connect test
Browse files
app.py
CHANGED
@@ -271,7 +271,7 @@ if __name__ == "__main__":
|
|
271 |
value="Mask", elem_id='edit_mode_select',
|
272 |
visible=True)
|
273 |
img2img_mask = gr.Radio(choices=["保留mask区域", "生成mask区域"],
|
274 |
-
label="Mask 方式",
|
275 |
#value=img2img_mask_modes[img2img_defaults['mask_mode']],
|
276 |
value = "生成mask区域",
|
277 |
visible=True)
|
@@ -283,7 +283,6 @@ if __name__ == "__main__":
|
|
283 |
img2img_resize = gr.Radio(label="Resize mode",
|
284 |
choices=["Just resize", "Crop and resize",
|
285 |
"Resize and fill"],
|
286 |
-
type="index",
|
287 |
value=img2img_resize_modes[
|
288 |
img2img_defaults['resize_mode']], visible=False)
|
289 |
|
|
|
271 |
value="Mask", elem_id='edit_mode_select',
|
272 |
visible=True)
|
273 |
img2img_mask = gr.Radio(choices=["保留mask区域", "生成mask区域"],
|
274 |
+
label="Mask 方式",
|
275 |
#value=img2img_mask_modes[img2img_defaults['mask_mode']],
|
276 |
value = "生成mask区域",
|
277 |
visible=True)
|
|
|
283 |
img2img_resize = gr.Radio(label="Resize mode",
|
284 |
choices=["Just resize", "Crop and resize",
|
285 |
"Resize and fill"],
|
|
|
286 |
value=img2img_resize_modes[
|
287 |
img2img_defaults['resize_mode']], visible=False)
|
288 |
|