tykimos commited on
Commit
5dd572e
1 Parent(s): 5833fb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def predict(image):
41
  normalized_image_array = (image_array.astype(np.float32) / 127.0) - 1
42
  # Load the image into the array
43
  data[0] = normalized_image_array
44
-
45
  # run the inference
46
  prediction = model.predict(data)[0]
47
  confidences = {label_dict[i]: float(prediction[i]) for i in range(4)}
 
41
  normalized_image_array = (image_array.astype(np.float32) / 127.0) - 1
42
  # Load the image into the array
43
  data[0] = normalized_image_array
44
+ model = None
45
  # run the inference
46
  prediction = model.predict(data)[0]
47
  confidences = {label_dict[i]: float(prediction[i]) for i in range(4)}