VishnuEcoClim commited on
Commit
f149717
·
1 Parent(s): 7a8f181

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,11 +51,11 @@ try:
51
  if st.button('Predict'):
52
  img = preprocess(image)
53
 
54
- model = ('classify_model.h5')
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