Spaces:
Sleeping
Sleeping
PIL removed
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from yolo.model import *
|
|
6 |
model = yolo_model()
|
7 |
|
8 |
def predict(input_img):
|
9 |
-
input_img = Image.fromarray(input_img)
|
10 |
_, payload = model.predict(input_img)
|
11 |
# print('prediction',prediction)
|
12 |
return payload
|
|
|
6 |
model = yolo_model()
|
7 |
|
8 |
def predict(input_img):
|
9 |
+
# input_img = Image.fromarray(input_img)
|
10 |
_, payload = model.predict(input_img)
|
11 |
# print('prediction',prediction)
|
12 |
return payload
|