Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,6 +36,7 @@ def model(img):
|
|
36 |
try:
|
37 |
# image = img.convert(channel).resize((256, 256))
|
38 |
image = cv2.resize(img, (256, 256))
|
|
|
39 |
except:
|
40 |
print("ERROR")
|
41 |
print(image)
|
|
|
36 |
try:
|
37 |
# image = img.convert(channel).resize((256, 256))
|
38 |
image = cv2.resize(img, (256, 256))
|
39 |
+
image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
40 |
except:
|
41 |
print("ERROR")
|
42 |
print(image)
|