Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def predict_image(input):
|
|
75 |
predictions = model1.predict(image_array)
|
76 |
|
77 |
# Get the predicted class label
|
78 |
-
predicted_class_index =
|
79 |
predicted_class_label = class_labels[predicted_class_index]
|
80 |
|
81 |
# Get the confidence score of the predicted class
|
|
|
75 |
predictions = model1.predict(image_array)
|
76 |
|
77 |
# Get the predicted class label
|
78 |
+
predicted_class_index = tf.argmax(predictions, axis=1).numpy()
|
79 |
predicted_class_label = class_labels[predicted_class_index]
|
80 |
|
81 |
# Get the confidence score of the predicted class
|