Spaces:
Runtime error
Runtime error
Update pages/04_Super_Resolution.py
Browse files- pages/04_Super_Resolution.py +5 -11
pages/04_Super_Resolution.py
CHANGED
@@ -248,18 +248,12 @@ if restore:
|
|
248 |
output_img.image(output, 'Restored Image')
|
249 |
output_img.save("Image.jpg")
|
250 |
with cols[1]:
|
251 |
-
st.
|
252 |
-
|
253 |
-
|
254 |
-
|
|
|
255 |
)
|
256 |
-
out_filename = "enlarged_images.zip"
|
257 |
-
# Provide the zip file data for download
|
258 |
-
st.download_button(
|
259 |
-
label= "Download Colorized Image",
|
260 |
-
data=open(out_filename, "rb").read(),
|
261 |
-
file_name=out_filename,
|
262 |
-
)
|
263 |
else:
|
264 |
st.warning('Upload a file', icon="⚠️")
|
265 |
|
|
|
248 |
output_img.image(output, 'Restored Image')
|
249 |
output_img.save("Image.jpg")
|
250 |
with cols[1]:
|
251 |
+
st.button("Done")
|
252 |
+
# st.download_button(
|
253 |
+
# label="Download Image",
|
254 |
+
# data=open("Image.jpg", "rb").read(),
|
255 |
+
# file_name="Image.jpg",
|
256 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
else:
|
258 |
st.warning('Upload a file', icon="⚠️")
|
259 |
|