Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,9 +18,9 @@ mood = load_learner("./models/mood.pkl")
|
|
18 |
|
19 |
|
20 |
# Function to make predictions from an image
|
21 |
-
def process(
|
22 |
-
boxes = detect.predict(
|
23 |
-
Image.open(image)
|
24 |
image_with_boxes = image.copy()
|
25 |
|
26 |
draw = ImageDraw.Draw(image_with_boxes)
|
|
|
18 |
|
19 |
|
20 |
# Function to make predictions from an image
|
21 |
+
def process(imagep):
|
22 |
+
boxes = detect.predict(imagep)
|
23 |
+
image = Image.open(image)
|
24 |
image_with_boxes = image.copy()
|
25 |
|
26 |
draw = ImageDraw.Draw(image_with_boxes)
|