amosfang commited on
Commit
dc62009
1 Parent(s): 1c20714

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
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)