Cany-Tam commited on
Commit
b9859fb
·
1 Parent(s): abb6deb

Update pages/04_Super_Resolution.py

Browse files
Files changed (1) hide show
  1. pages/04_Super_Resolution.py +8 -0
pages/04_Super_Resolution.py CHANGED
@@ -246,6 +246,14 @@ if restore:
246
  output = realesrgan(input_img, model_name, denoise_strength,
247
  face_enhance, outscale)
248
  output_img.image(output, 'Restored Image')
 
 
 
 
 
 
 
 
249
  else:
250
  st.warning('Upload a file', icon="⚠️")
251
 
 
246
  output = realesrgan(input_img, model_name, denoise_strength,
247
  face_enhance, outscale)
248
  output_img.image(output, 'Restored Image')
249
+ with cols[1]:
250
+ out_filename = "enlarged_images.zip"
251
+ # Provide the zip file data for download
252
+ st.download_button(
253
+ label= "Download Colorized Image",
254
+ data=open(out_filename, "rb").read(),
255
+ file_name=out_filename,
256
+ )
257
  else:
258
  st.warning('Upload a file', icon="⚠️")
259