thebestteamever commited on
Commit
1fc490d
1 Parent(s): 51ecbdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ model = tf.keras.models.load_model("./model.h5")
6
 
7
  #return a dictionary of labels and probabilities
8
  def fire_or_non_fire(img):
9
- img = img.reshape((-1 ,105, 165, 3)))
10
  prediction = model.predict(img).tolist()[0]
11
  labels = ["Fire", "Non Fire"]
12
  return {labels[i]: prediction[i] for i in range(2)}
 
6
 
7
  #return a dictionary of labels and probabilities
8
  def fire_or_non_fire(img):
9
+ img = img.reshape((-1 ,105, 165, 3))
10
  prediction = model.predict(img).tolist()[0]
11
  labels = ["Fire", "Non Fire"]
12
  return {labels[i]: prediction[i] for i in range(2)}