ikigai-edu commited on
Commit
cba2546
·
1 Parent(s): 5e20048

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ load_model = tf.keras.models.load_model('./resnet50_food_model')
10
  def predict(img):
11
  img = img.reshape(-1,224,224,3)
12
  prediction= load_model.predict(img)[0]
13
-
14
  return {labels[i]: float(prediction[i]) for i in range(2)}
15
 
16
  title = "Food Classifier"
 
10
  def predict(img):
11
  img = img.reshape(-1,224,224,3)
12
  prediction= load_model.predict(img)[0]
13
+ labels = ["Food", "Non-food"]
14
  return {labels[i]: float(prediction[i]) for i in range(2)}
15
 
16
  title = "Food Classifier"