Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -239,7 +239,8 @@ def check_load(inp_url,outp_vid,hid_box,start_f,end_f):
|
|
239 |
return out_trim,in_vid,trim_count
|
240 |
#outp_vid.change(echo_fn,outp_vid,[out_trim])
|
241 |
def process_image_1(image):
|
242 |
-
out = esr(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=False, outscale=2)
|
|
|
243 |
print (out)
|
244 |
out = Image.open(out)
|
245 |
return out
|
|
|
239 |
return out_trim,in_vid,trim_count
|
240 |
#outp_vid.change(echo_fn,outp_vid,[out_trim])
|
241 |
def process_image_1(image):
|
242 |
+
#out = esr(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=False, outscale=2)
|
243 |
+
out = esr(image, "realesr-general-x4v3", 0.5, False, 2)
|
244 |
print (out)
|
245 |
out = Image.open(out)
|
246 |
return out
|