nateraw commited on
Commit
6529505
·
1 Parent(s): c806357

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ upsampler = RealESRGANer(
22
  def upsample(image):
23
  # image = np.array(image)
24
  image = image[:, :, ::-1] # RGB -> BGR
25
- image, _ = self.upsampler.enhance(image, outscale=4)
26
  image = image[:, :, ::-1] # BGR -> RGB
27
  image = Image.fromarray(image)
28
  return image
 
22
  def upsample(image):
23
  # image = np.array(image)
24
  image = image[:, :, ::-1] # RGB -> BGR
25
+ image, _ = upsampler.enhance(image, outscale=4)
26
  image = image[:, :, ::-1] # BGR -> RGB
27
  image = Image.fromarray(image)
28
  return image