Spaces:
Runtime error
Runtime error
John Smith
commited on
Commit
·
8fd9060
1
Parent(s):
5180f51
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,8 @@ def image_mod(image):
|
|
15 |
resize = tf.image.resize(img, (256, 256))
|
16 |
plt.imshow(resize.numpy().astype(int))
|
17 |
yhat = model.predict(np.expand_dims(resize,0))
|
|
|
|
|
18 |
#display = np.argmax(yhat)
|
19 |
#display = str(display)
|
20 |
#if display == "0":
|
|
|
15 |
resize = tf.image.resize(img, (256, 256))
|
16 |
plt.imshow(resize.numpy().astype(int))
|
17 |
yhat = model.predict(np.expand_dims(resize,0))
|
18 |
+
if yhat == "":
|
19 |
+
yhat = "None"
|
20 |
#display = np.argmax(yhat)
|
21 |
#display = str(display)
|
22 |
#if display == "0":
|