Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -163,13 +163,17 @@ def keywords(text,prompt_num,user_keywords):
|
|
163 |
count = 0
|
164 |
images = []
|
165 |
# np_images = []
|
|
|
166 |
while count != int(len(generated_prompts)):
|
167 |
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
|
|
|
|
|
|
173 |
|
174 |
# min_shape = sorted( [(np.sum(i.size), i.size ) for i in images])[0][1]
|
175 |
# imgs_comb = np.hstack([i.resize(min_shape) for i in images])
|
|
|
163 |
count = 0
|
164 |
images = []
|
165 |
# np_images = []
|
166 |
+
print("works1")
|
167 |
while count != int(len(generated_prompts)):
|
168 |
|
169 |
+
print("works2")
|
170 |
+
|
171 |
+
for i in generated_prompts:
|
172 |
+
print("works3")
|
173 |
+
count += 1
|
174 |
+
print(i)
|
175 |
+
image = pipe(i, height=768, width=768, guidance_scale = 10).images[0]
|
176 |
+
images.append(image)
|
177 |
|
178 |
# min_shape = sorted( [(np.sum(i.size), i.size ) for i in images])[0][1]
|
179 |
# imgs_comb = np.hstack([i.resize(min_shape) for i in images])
|