Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,6 @@ def predict_image(input):
|
|
62 |
image_array = tf.expand_dims(image_array, 0)
|
63 |
# Predict using the model
|
64 |
predictions = model1.predict(image_array)
|
65 |
-
class_labels = ['cardboard', 'glass', 'metal', 'paper', 'plastic', 'trash']
|
66 |
category_scores = {}
|
67 |
for i, class_label in enumerate(class_labels):
|
68 |
category_scores[class_label] = predictions[0][i].item()
|
|
|
62 |
image_array = tf.expand_dims(image_array, 0)
|
63 |
# Predict using the model
|
64 |
predictions = model1.predict(image_array)
|
|
|
65 |
category_scores = {}
|
66 |
for i, class_label in enumerate(class_labels):
|
67 |
category_scores[class_label] = predictions[0][i].item()
|