Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,13 @@ img_mode = "RGBA"
|
|
15 |
|
16 |
|
17 |
def realesrgan1(img, model_name, denoise_strength, face_enhance, outscale):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
"""Real-ESRGAN function to restore (and upscale) images.
|
19 |
"""
|
20 |
if not img:
|
|
|
15 |
|
16 |
|
17 |
def realesrgan1(img, model_name, denoise_strength, face_enhance, outscale):
|
18 |
+
denoise_strength = float(denoise_strength)
|
19 |
+
if face_enhance == "False":
|
20 |
+
face_enhance = False
|
21 |
+
else:
|
22 |
+
face_enhance = True
|
23 |
+
outscale = int(outscale)
|
24 |
+
|
25 |
"""Real-ESRGAN function to restore (and upscale) images.
|
26 |
"""
|
27 |
if not img:
|