alfredplpl commited on
Commit
b80f9f1
1 Parent(s): 6f0fe9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -146,8 +146,7 @@ def txt_to_img(prompt, neg_prompt, guidance, steps, width, height, generator,sup
146
  width = width,
147
  height = height,
148
  output_type="latent",
149
- generator = generator)
150
- low_res_latents = pipeline(prompt, generator=generator, output_type="latent").images
151
 
152
  result = upscaler(
153
  prompt=prompt,
@@ -183,7 +182,7 @@ def img_to_img(prompt, neg_prompt, img, strength, guidance, steps, width, height
183
  #width = width,
184
  #height = height,
185
  output_type="latent",
186
- generator = generator)
187
 
188
  result = upscaler(
189
  prompt=prompt,
 
146
  width = width,
147
  height = height,
148
  output_type="latent",
149
+ generator = generator).images
 
150
 
151
  result = upscaler(
152
  prompt=prompt,
 
182
  #width = width,
183
  #height = height,
184
  output_type="latent",
185
+ generator = generator).images
186
 
187
  result = upscaler(
188
  prompt=prompt,