benja20029 commited on
Commit
c9bd713
1 Parent(s): bc14618

Change of emotions

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ def emotion(x): return x[0].isupper()
5
 
6
  learn = load_learner('emotion_classifier_model.pkl')
7
 
8
- categories = ('anger', 'disgust', 'fear', 'happiness', 'neutral', 'sadness', 'surprise')
9
 
10
  def classify_images(img):
11
  pred,idx,probs = learn.predict(img)
 
5
 
6
  learn = load_learner('emotion_classifier_model.pkl')
7
 
8
+ categories = ('angry', 'disgusted', 'fearfull', 'happy', 'neutral', 'sad', 'surprised')
9
 
10
  def classify_images(img):
11
  pred,idx,probs = learn.predict(img)