Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)}
|