Omnibus commited on
Commit
ad21ebc
·
1 Parent(s): 62a3898

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -246,7 +246,7 @@ def process_image_1(image):
246
  #rand_im = uuid.uuid4()
247
  #cv2.imwrite(f"{rand_im}-vid_tmp_proc.png", image)
248
  #image = f"{rand_im}-vid_tmp_proc.png"
249
- image=Image.open(image)
250
  out = esr.realesrgan1(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=False, outscale=2)
251
  #out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
252
  #out_url = f'https://omnibus-vid-url-dl-mod.hf.space/file={out}'
 
246
  #rand_im = uuid.uuid4()
247
  #cv2.imwrite(f"{rand_im}-vid_tmp_proc.png", image)
248
  #image = f"{rand_im}-vid_tmp_proc.png"
249
+ image=Image.fromarray(image)
250
  out = esr.realesrgan1(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=False, outscale=2)
251
  #out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
252
  #out_url = f'https://omnibus-vid-url-dl-mod.hf.space/file={out}'