Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 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
|