Spaces:
Runtime error
Runtime error
Update pages/04_Super_Resolution.py
Browse files
pages/04_Super_Resolution.py
CHANGED
@@ -249,11 +249,11 @@ if restore:
|
|
249 |
#output_img.save("Image.jpg")
|
250 |
with cols[1]:
|
251 |
st.button("Done")
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
else:
|
258 |
st.warning('Upload a file', icon="⚠️")
|
259 |
|
|
|
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(output, "rb").read(),
|
255 |
+
file_name="Image.jpg",
|
256 |
+
)
|
257 |
else:
|
258 |
st.warning('Upload a file', icon="⚠️")
|
259 |
|