Omnibus commited on
Commit
1f6d30c
1 Parent(s): 1c9ec82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
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: