Cany-Tam commited on
Commit
6603d6e
·
1 Parent(s): ae58611

Update pages/04_Super_Resolution.py

Browse files
Files changed (1) hide show
  1. 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.download_button(
252
- label="Download Image",
253
- data=open("Image.jpg", "rb").read(),
254
- file_name="Image.jpg",
 
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