yuragoithf commited on
Commit
78cb3e9
·
verified ·
1 Parent(s): a8a98ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def predict_class(image):
48
  img = tf.image.resize(img, [input_shape[0], input_shape[1]])
49
  img = tf.expand_dims(img, axis=0)
50
  prediction = model.predict(img)
51
- return prediction[0][0]
52
 
53
  # UI Design for single class output
54
  # def classify_image(image):
 
48
  img = tf.image.resize(img, [input_shape[0], input_shape[1]])
49
  img = tf.expand_dims(img, axis=0)
50
  prediction = model.predict(img)
51
+ return prediction[0]
52
 
53
  # UI Design for single class output
54
  # def classify_image(image):