Sanket commited on
Commit
faafec4
1 Parent(s): ac899b9
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -124,9 +124,9 @@ def predict(input_img, ver):
124
  R, G, B = 0, 1, 2
125
  # constant by which each pixel is divided
126
 
127
- Red = source[R].point(lambda x: darken_pixel(x))
128
- Green = source[G].point(lambda x: darken_pixel(x))
129
- Blue = source[B].point(lambda x: darken_pixel(x))
130
 
131
  im_output = Image.merge(im_output.mode, (Red, Green, Blue))
132
  return im_output
 
124
  R, G, B = 0, 1, 2
125
  # constant by which each pixel is divided
126
 
127
+ Red = source[R].point(lambda i: i / 2.0)
128
+ Green = source[G].point(lambda i: i / 2.0)
129
+ Blue = source[B].point(lambda i: i / 2.0)
130
 
131
  im_output = Image.merge(im_output.mode, (Red, Green, Blue))
132
  return im_output