Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,6 @@ def load_model():
|
|
25 |
return detection_model
|
26 |
|
27 |
def predict(image_np):
|
28 |
-
global detection_model # Declare as a global variable
|
29 |
image_np = pil_image_as_numpy_array(image_np)
|
30 |
image_np = np.expand_dims(image_np, axis=0)
|
31 |
results = detection_model(image_np)
|
|
|
25 |
return detection_model
|
26 |
|
27 |
def predict(image_np):
|
|
|
28 |
image_np = pil_image_as_numpy_array(image_np)
|
29 |
image_np = np.expand_dims(image_np, axis=0)
|
30 |
results = detection_model(image_np)
|