Spaces:
Running
Running
Commit
·
f149717
1
Parent(s):
7a8f181
Update app.py
Browse files
app.py
CHANGED
@@ -51,11 +51,11 @@ try:
|
|
51 |
if st.button('Predict'):
|
52 |
img = preprocess(image)
|
53 |
|
54 |
-
model = (
|
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)
|
61 |
pass
|
|
|
51 |
if st.button('Predict'):
|
52 |
img = preprocess(image)
|
53 |
|
54 |
+
model = model_arc()
|
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[prediction]))#np.argmax(prediction[0], axis=-1)]))
|
59 |
except Exception as e:
|
60 |
st.info(e)
|
61 |
pass
|