bhushanp commited on
Commit
0c1dd68
1 Parent(s): 973129a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(image):
22
- boxes = detect.predict(image)
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)