Cany-Tam commited on
Commit
8fc0ca1
·
1 Parent(s): e74dfcf

Update pages/04_Super_Resolution.py

Browse files
Files changed (1) hide show
  1. pages/04_Super_Resolution.py +7 -7
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
- 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
 
 
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