Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -136,6 +136,7 @@ idip_checkboxes = []
|
|
136 |
def open_accordion_on_example_selection(*args):
|
137 |
# print("enter open_accordion_on_example_selection")
|
138 |
len_images = (len(args)-11)//3
|
|
|
139 |
return None, "", False
|
140 |
|
141 |
@spaces.GPU
|
@@ -503,8 +504,8 @@ if __name__ == "__main__":
|
|
503 |
vae_skip_iter_s1,
|
504 |
vae_skip_iter_s2,
|
505 |
],
|
506 |
-
outputs=images,
|
507 |
-
fn=
|
508 |
run_on_click=True,
|
509 |
label="Examples"
|
510 |
)
|
|
|
136 |
def open_accordion_on_example_selection(*args):
|
137 |
# print("enter open_accordion_on_example_selection")
|
138 |
len_images = (len(args)-11)//3
|
139 |
+
print(len_images)
|
140 |
return None, "", False
|
141 |
|
142 |
@spaces.GPU
|
|
|
504 |
vae_skip_iter_s1,
|
505 |
vae_skip_iter_s2,
|
506 |
],
|
507 |
+
outputs=[images[3], captions[3], idip_checkboxes[3]],
|
508 |
+
fn=open_accordion_on_example_selection,
|
509 |
run_on_click=True,
|
510 |
label="Examples"
|
511 |
)
|