Omnibus commited on
Commit
acafd41
·
1 Parent(s): 4c78043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -242,9 +242,10 @@ def check_load(inp_url,outp_vid,hid_box,start_f,end_f):
242
  #outp_vid.change(echo_fn,outp_vid,[out_trim])
243
  def process_image_1(image):
244
  print(image)
245
- #rand_im = uuid.uuid4()
 
 
246
  out = esr.realesrgan1(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=False, outscale=2)
247
- #cv2.imwrite(f"{rand_im}-vid_tmp_proc.png", image)
248
  #out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
249
  #out_url = f'https://omnibus-vid-url-dl-mod.hf.space/file={out}'
250
  #out = esr.realesrgan1(image, "realesr-general-x4v3", 0.5, False, 2)
 
242
  #outp_vid.change(echo_fn,outp_vid,[out_trim])
243
  def process_image_1(image):
244
  print(image)
245
+ rand_im = uuid.uuid4()
246
+ cv2.imwrite(f"{rand_im}-vid_tmp_proc.png", image)
247
+ image = f"{rand_im}-vid_tmp_proc.png"
248
  out = esr.realesrgan1(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=False, outscale=2)
 
249
  #out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
250
  #out_url = f'https://omnibus-vid-url-dl-mod.hf.space/file={out}'
251
  #out = esr.realesrgan1(image, "realesr-general-x4v3", 0.5, False, 2)