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