pemujo commited on
Commit
c2b0b27
·
1 Parent(s): ee96d42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,8 +58,8 @@ model.compile(metrics=metrics)
58
  def predict(ash_image, model=model):
59
  #label = np.load(label_image)
60
  print(ash_image)
61
- ash_image = np.load('images/552609781892851211.npy')
62
- #ash_image = np.asarray(ash_image)
63
  y_pred = model.predict(ash_image.reshape(1,256, 256, 3))
64
  prediction = np.argmax(y_pred[0], axis=2).reshape(256,256)
65
  #intersection = label & prediction
 
58
  def predict(ash_image, model=model):
59
  #label = np.load(label_image)
60
  print(ash_image)
61
+ # ash_image = np.load('images/552609781892851211.npy')
62
+ ash_image = ash_image
63
  y_pred = model.predict(ash_image.reshape(1,256, 256, 3))
64
  prediction = np.argmax(y_pred[0], axis=2).reshape(256,256)
65
  #intersection = label & prediction