Spaces:
Build error
Build error
no upscale
Browse files
app.py
CHANGED
@@ -331,6 +331,7 @@ def replace_nsfw_images(results):
|
|
331 |
return results.images
|
332 |
|
333 |
def upscale(results, prompt, neg_prompt, generator):
|
|
|
334 |
for i in range(len(results.images)):
|
335 |
results.images.append(UPSCALER(prompt=prompt, negative_prompt=neg_prompt, image=results.images[i], num_inference_steps=20, guidance_scale=0, generator=generator).images[0])
|
336 |
return results
|
|
|
331 |
return results.images
|
332 |
|
333 |
def upscale(results, prompt, neg_prompt, generator):
|
334 |
+
return results
|
335 |
for i in range(len(results.images)):
|
336 |
results.images.append(UPSCALER(prompt=prompt, negative_prompt=neg_prompt, image=results.images[i], num_inference_steps=20, guidance_scale=0, generator=generator).images[0])
|
337 |
return results
|