Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def inference(image_url, image, min_score):
|
|
49 |
im = np.frombuffer(r.content, dtype="uint8")
|
50 |
im = cv2.imdecode(im, cv2.IMREAD_COLOR)
|
51 |
else:
|
52 |
-
im = cv2.imread(image
|
53 |
# Model expect BGR!
|
54 |
#im = image[:,:,::-1]
|
55 |
|
|
|
49 |
im = np.frombuffer(r.content, dtype="uint8")
|
50 |
im = cv2.imdecode(im, cv2.IMREAD_COLOR)
|
51 |
else:
|
52 |
+
im = cv2.imread(image)
|
53 |
# Model expect BGR!
|
54 |
#im = image[:,:,::-1]
|
55 |
|