Sanket commited on
Commit
8f18de2
1 Parent(s): 03bf6ba
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -118,14 +118,10 @@ def predict(input_img, ver):
118
 
119
  drawing = transforms.ToPILImage()(drawing)
120
 
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
130
 
131
 
 
118
 
119
  drawing = transforms.ToPILImage()(drawing)
120
 
 
 
 
121
  # constant by which each pixel is divided
122
+ drawing = drawing.point(lambda i: darken_pixel(i))
123
 
124
+ im_output = drawing
 
 
125
  return im_output
126
 
127