Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -243,7 +243,7 @@ def check_load(inp_url,outp_vid,hid_box,start_f,end_f):
|
|
243 |
def process_image_1(image):
|
244 |
rand_im = uuid.uuid4()
|
245 |
#out = esr(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=False, outscale=2)
|
246 |
-
cv2.imwrite(f"{rand_im}-vid_tmp_proc.png",
|
247 |
out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
|
248 |
out_url = f'https://omnibus-vid-url-dl-mod.hf.space/file={out}'
|
249 |
out = esr([out_url, "realesr-general-x4v3", "0.5", "False", "2"])
|
|
|
243 |
def process_image_1(image):
|
244 |
rand_im = uuid.uuid4()
|
245 |
#out = esr(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=False, outscale=2)
|
246 |
+
cv2.imwrite(f"{rand_im}-vid_tmp_proc.png", image)
|
247 |
out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
|
248 |
out_url = f'https://omnibus-vid-url-dl-mod.hf.space/file={out}'
|
249 |
out = esr([out_url, "realesr-general-x4v3", "0.5", "False", "2"])
|