Sanket
commited on
Commit
•
faafec4
1
Parent(s):
ac899b9
error fix
Browse files
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
|
128 |
-
Green = source[G].point(lambda
|
129 |
-
Blue = source[B].point(lambda
|
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
|