Spaces:
Running
on
Zero
Running
on
Zero
Update app_2.py
Browse files
app_2.py
CHANGED
@@ -1161,7 +1161,7 @@ with block:
|
|
1161 |
allow_preview=False,
|
1162 |
)
|
1163 |
|
1164 |
-
|
1165 |
selected = gr.Number(visible=True)
|
1166 |
gallery_result.select(use_orientation, inputs=None, outputs=extract_fg)
|
1167 |
|
|
|
1161 |
allow_preview=False,
|
1162 |
)
|
1163 |
|
1164 |
+
if gallery_result:
|
1165 |
selected = gr.Number(visible=True)
|
1166 |
gallery_result.select(use_orientation, inputs=None, outputs=extract_fg)
|
1167 |
|