Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def image_preprocess(image):
|
|
30 |
model = YOLO('best (1).pt')
|
31 |
|
32 |
def response(image):
|
33 |
-
res = Image.
|
34 |
im_rgb = model(res)
|
35 |
# im_rgb = Image.fromarray(im_rgb)
|
36 |
return np.array(im_rgb)
|
|
|
30 |
model = YOLO('best (1).pt')
|
31 |
|
32 |
def response(image):
|
33 |
+
res = Image.fromarray(image)
|
34 |
im_rgb = model(res)
|
35 |
# im_rgb = Image.fromarray(im_rgb)
|
36 |
return np.array(im_rgb)
|