Spaces:
Sleeping
Sleeping
Commit
·
7d3b68d
1
Parent(s):
c57515e
Update main.py
Browse files
main.py
CHANGED
@@ -97,11 +97,9 @@ def main():
|
|
97 |
resized_image_bytes = resize_image(image_bytes)
|
98 |
|
99 |
st.success("Upscaling image with stable-diffusion-x4-latent-upscaler...")
|
100 |
-
|
101 |
-
upscaled_image_bytes = upscale_image_stable_diffusion(resized_image_bytes)
|
102 |
|
103 |
st.success("Further upscaling image with GFPGAN...")
|
104 |
-
# Again use the upscaled_image_bytes from the previous step for the GFPGAN
|
105 |
img = further_upscale_image(upscaled_image_bytes)
|
106 |
|
107 |
st.image(img, caption='Upscaled Image', use_column_width=True)
|
|
|
97 |
resized_image_bytes = resize_image(image_bytes)
|
98 |
|
99 |
st.success("Upscaling image with stable-diffusion-x4-latent-upscaler...")
|
100 |
+
upscaled_image_bytes = upscale_image_stable_diffusion(resized_image_bytes) # Change this line
|
|
|
101 |
|
102 |
st.success("Further upscaling image with GFPGAN...")
|
|
|
103 |
img = further_upscale_image(upscaled_image_bytes)
|
104 |
|
105 |
st.image(img, caption='Upscaled Image', use_column_width=True)
|