Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,8 +93,8 @@ else:
|
|
93 |
def occ_predict(img_content):
|
94 |
im = []
|
95 |
image=cv2.imread(img_content)
|
96 |
-
imgplot = plt.imshow(image)
|
97 |
-
plt.show()
|
98 |
img = Image.fromarray(image, 'RGB')
|
99 |
resize_image = img.resize((50, 50))
|
100 |
im.append(np.array(resize_image))
|
|
|
93 |
def occ_predict(img_content):
|
94 |
im = []
|
95 |
image=cv2.imread(img_content)
|
96 |
+
#imgplot = plt.imshow(image)
|
97 |
+
#plt.show()
|
98 |
img = Image.fromarray(image, 'RGB')
|
99 |
resize_image = img.resize((50, 50))
|
100 |
im.append(np.array(resize_image))
|