Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -136,8 +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 |
-
|
140 |
-
return clear_values
|
141 |
|
142 |
@spaces.GPU
|
143 |
def generate_image(
|
@@ -504,7 +503,7 @@ if __name__ == "__main__":
|
|
504 |
vae_skip_iter_s1,
|
505 |
vae_skip_iter_s2,
|
506 |
],
|
507 |
-
outputs=images[3:]
|
508 |
fn=open_accordion_on_example_selection,
|
509 |
run_on_click=True,
|
510 |
label="Examples"
|
|
|
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,] * (num_inputs-len_images)
|
|
|
140 |
|
141 |
@spaces.GPU
|
142 |
def generate_image(
|
|
|
503 |
vae_skip_iter_s1,
|
504 |
vae_skip_iter_s2,
|
505 |
],
|
506 |
+
outputs=images[3:],
|
507 |
fn=open_accordion_on_example_selection,
|
508 |
run_on_click=True,
|
509 |
label="Examples"
|