Spaces:
Runtime error
Runtime error
John Smith
commited on
Commit
·
ade45a8
1
Parent(s):
b00effd
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def image_mod(image_mod):
|
|
11 |
resize = tf.image.resize(img, (256, 256))
|
12 |
plt.imshow(resize.numpy().astype(int))
|
13 |
yhat = model.predict(np.expand_dims(resize,0))
|
14 |
-
display = yhat
|
15 |
display = str(display)
|
16 |
return display
|
17 |
|
|
|
11 |
resize = tf.image.resize(img, (256, 256))
|
12 |
plt.imshow(resize.numpy().astype(int))
|
13 |
yhat = model.predict(np.expand_dims(resize,0))
|
14 |
+
display = np.argmax(yhat)
|
15 |
display = str(display)
|
16 |
return display
|
17 |
|