Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -134,10 +134,7 @@ vlm_btns = []
|
|
| 134 |
idip_checkboxes = []
|
| 135 |
|
| 136 |
def open_accordion_on_example_selection(*args):
|
| 137 |
-
|
| 138 |
-
captions[3].clear()
|
| 139 |
-
idip_checkboxes.value = False
|
| 140 |
-
|
| 141 |
|
| 142 |
@spaces.GPU
|
| 143 |
def generate_image(
|
|
@@ -504,7 +501,7 @@ if __name__ == "__main__":
|
|
| 504 |
vae_skip_iter_s1,
|
| 505 |
vae_skip_iter_s2,
|
| 506 |
],
|
| 507 |
-
|
| 508 |
fn=open_accordion_on_example_selection,
|
| 509 |
run_on_click=True,
|
| 510 |
label="Examples"
|
|
|
|
| 134 |
idip_checkboxes = []
|
| 135 |
|
| 136 |
def open_accordion_on_example_selection(*args):
|
| 137 |
+
return None, None, None
|
|
|
|
|
|
|
|
|
|
| 138 |
|
| 139 |
@spaces.GPU
|
| 140 |
def generate_image(
|
|
|
|
| 501 |
vae_skip_iter_s1,
|
| 502 |
vae_skip_iter_s2,
|
| 503 |
],
|
| 504 |
+
outputs=[images[3], captions[3], idip_checkboxes[3]],
|
| 505 |
fn=open_accordion_on_example_selection,
|
| 506 |
run_on_click=True,
|
| 507 |
label="Examples"
|