Spaces:
Runtime error
Runtime error
Update pages/04_Super_Resolution.py
Browse files
pages/04_Super_Resolution.py
CHANGED
@@ -246,15 +246,15 @@ if restore:
|
|
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(
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
else:
|
259 |
st.warning('Upload a file', icon="⚠️")
|
260 |
|
|
|
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(
|
254 |
+
# label="Download Image",
|
255 |
+
# data=open("Image.jpg", "rb"),
|
256 |
+
# file_name="Image.jpg",
|
257 |
+
)
|
258 |
else:
|
259 |
st.warning('Upload a file', icon="⚠️")
|
260 |
|