vishnun commited on
Commit
768eae8
1 Parent(s): bc5e2a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def colorify(pixels):
18
  gen_image = gen_model.predict(pixels)
19
  gen_image = (gen_image + 1) / 2
20
 
21
- return Image.fromarray((gen_image[0] * 255.0).astype(np.uint16))
22
 
23
  title = "Colorify"
24
  description = "Recolor your images using this lite version of PIX2PIX GAN , model is trained on 700 randomly collected images from the internet with 256*256 pixels. Due to the above constraint please note that the resolution of your images will decrease"
 
18
  gen_image = gen_model.predict(pixels)
19
  gen_image = (gen_image + 1) / 2
20
 
21
+ return Image.fromarray((gen_image[0] * 255.0).astype(np.uint8))
22
 
23
  title = "Colorify"
24
  description = "Recolor your images using this lite version of PIX2PIX GAN , model is trained on 700 randomly collected images from the internet with 256*256 pixels. Due to the above constraint please note that the resolution of your images will decrease"