Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,11 @@ def greet(image):
|
|
15 |
prediction = model.predict(image.reshape(1,224,448,image.shape[2]))
|
16 |
prediction = tf.squeeze(tf.round(prediction))
|
17 |
|
|
|
|
|
18 |
print(prediction.shape)
|
19 |
|
|
|
20 |
#print(model.summary())
|
21 |
return "Hello "
|
22 |
|
|
|
15 |
prediction = model.predict(image.reshape(1,224,448,image.shape[2]))
|
16 |
prediction = tf.squeeze(tf.round(prediction))
|
17 |
|
18 |
+
prediction = np.argmax(prediction,axis=2)
|
19 |
+
|
20 |
print(prediction.shape)
|
21 |
|
22 |
+
|
23 |
#print(model.summary())
|
24 |
return "Hello "
|
25 |
|