Cany-Tam commited on
Commit
e74dfcf
·
1 Parent(s): 9255bc6

Update pages/04_Super_Resolution.py

Browse files
Files changed (1) hide show
  1. pages/04_Super_Resolution.py +2 -1
pages/04_Super_Resolution.py CHANGED
@@ -246,7 +246,8 @@ if restore:
246
  if input_img is not None:
247
  output = realesrgan(input_img, model_name, denoise_strength,
248
  face_enhance, outscale)
249
- Image.fromarray(output).save("Image.jpg")
 
250
  with col2:
251
  st.image(output, 'Restored Image')
252
  st.download_button(
 
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(