amosfang commited on
Commit
6c07c84
1 Parent(s): 7f9d6f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -36,8 +36,7 @@ def load_model():
36
 
37
  def predict(image_np):
38
 
39
- if not isinstance(image_np, np.ndarray):
40
- image_np = pil_image_as_numpy_array(image_np)
41
 
42
  results = detection_model(image_np)
43
 
 
36
 
37
  def predict(image_np):
38
 
39
+ image_np = pil_image_as_numpy_array(image_np)
 
40
 
41
  results = detection_model(image_np)
42