Spaces:
Runtime error
Runtime error
Update pages/04_Super_Resolution.py
Browse files
pages/04_Super_Resolution.py
CHANGED
@@ -246,7 +246,8 @@ if restore:
|
|
246 |
if input_img is not None:
|
247 |
output = realesrgan(input_img, model_name, denoise_strength,
|
248 |
face_enhance, outscale)
|
249 |
-
Image.fromarray(output)
|
|
|
250 |
with col2:
|
251 |
st.image(output, 'Restored Image')
|
252 |
st.download_button(
|
|
|
246 |
if input_img is not None:
|
247 |
output = realesrgan(input_img, model_name, denoise_strength,
|
248 |
face_enhance, outscale)
|
249 |
+
im = Image.fromarray(output)
|
250 |
+
im.save("Image.jpg")
|
251 |
with col2:
|
252 |
st.image(output, 'Restored Image')
|
253 |
st.download_button(
|