rocioadlc commited on
Commit
8c8a746
Β·
verified Β·
1 Parent(s): 9d149e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = np.argmax(predictions, -1)
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