Spaces:
Running
Running
Commit
·
5d33cbf
1
Parent(s):
ffc09ad
Update app.py
Browse files
app.py
CHANGED
@@ -55,6 +55,11 @@ try:
|
|
55 |
#model.load_weights("classify_model.h5")
|
56 |
|
57 |
prediction = model.predict(img[np.newaxis, ...])
|
|
|
|
|
|
|
|
|
|
|
58 |
st.info('Hey! The uploaded image has been classified as " {} waste " '.format(labels[np.argmax(prediction[0], axis=-1)]))
|
59 |
except Exception as e:
|
60 |
st.info(e)
|
|
|
55 |
#model.load_weights("classify_model.h5")
|
56 |
|
57 |
prediction = model.predict(img[np.newaxis, ...])
|
58 |
+
|
59 |
+
print(model)
|
60 |
+
print("------------------------------------")
|
61 |
+
print(prediction)
|
62 |
+
|
63 |
st.info('Hey! The uploaded image has been classified as " {} waste " '.format(labels[np.argmax(prediction[0], axis=-1)]))
|
64 |
except Exception as e:
|
65 |
st.info(e)
|