Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,8 +123,8 @@ with gr.Blocks() as app:
|
|
| 123 |
|
| 124 |
def on_change_form_mask_image(form_composite_image, form_mask_image):
|
| 125 |
if form_mask_image is None:
|
| 126 |
-
return gr.update(interactive=False
|
| 127 |
-
interactive=False), gr.update(interactive=False), gr.update(
|
| 128 |
interactive=False), gr.update(interactive=False), gr.update(value=None)
|
| 129 |
|
| 130 |
if form_composite_image.size[:2] != form_mask_image.size[:2]:
|
|
|
|
| 123 |
|
| 124 |
def on_change_form_mask_image(form_composite_image, form_mask_image):
|
| 125 |
if form_mask_image is None:
|
| 126 |
+
return gr.update(interactive=False), gr.update(
|
| 127 |
+
interactive=False if form_composite_image is None else True), gr.update(interactive=False), gr.update(
|
| 128 |
interactive=False), gr.update(interactive=False), gr.update(value=None)
|
| 129 |
|
| 130 |
if form_composite_image.size[:2] != form_mask_image.size[:2]:
|