Sanket commited on
Commit ·
03bf6ba
1
Parent(s): 88f4c8b
app.py
CHANGED
|
@@ -121,10 +121,9 @@ def predict(input_img, ver):
|
|
| 121 |
# Making image darker
|
| 122 |
source = drawing.split()
|
| 123 |
|
| 124 |
-
W = 0
|
| 125 |
# constant by which each pixel is divided
|
| 126 |
|
| 127 |
-
White = source
|
| 128 |
|
| 129 |
im_output = Image.merge(drawing.mode, (White))
|
| 130 |
return im_output
|
|
|
|
| 121 |
# Making image darker
|
| 122 |
source = drawing.split()
|
| 123 |
|
|
|
|
| 124 |
# constant by which each pixel is divided
|
| 125 |
|
| 126 |
+
White = source.point(lambda i: darken_pixel(i))
|
| 127 |
|
| 128 |
im_output = Image.merge(drawing.mode, (White))
|
| 129 |
return im_output
|