Spaces:
Running
Running
upscaler update
Browse files
frontend/webui/text_to_image_ui.py
CHANGED
@@ -81,7 +81,9 @@ def generate_text_to_image(
|
|
81 |
#out_images.append(image.resize((768, 768),resample=Image.LANCZOS))
|
82 |
in_image = ImageLoader.load_image(image)
|
83 |
up_image =upscaler(in_image)
|
84 |
-
|
|
|
|
|
85 |
|
86 |
return out_images
|
87 |
|
|
|
81 |
#out_images.append(image.resize((768, 768),resample=Image.LANCZOS))
|
82 |
in_image = ImageLoader.load_image(image)
|
83 |
up_image =upscaler(in_image)
|
84 |
+
transform = T.ToPILImage()
|
85 |
+
pil_img=transform(up_image.squeeze())
|
86 |
+
out_images.append(pil_img)
|
87 |
|
88 |
return out_images
|
89 |
|