Spaces:
Running
Running
benja20029
commited on
Commit
•
c9bd713
1
Parent(s):
bc14618
Change of emotions
Browse files
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 = ('
|
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)
|