apruvd commited on
Commit
a0b80e1
·
1 Parent(s): 9648631

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
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
- for i in generated_prompts:
169
- count += 1
170
- print(i)
171
- image = pipe(i, height=768, width=768, guidance_scale = 10).images[0]
172
- images.append(image)
 
 
 
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])