Edward Ross commited on
Commit
4be6a0c
1 Parent(s): 42cfeaf

Remove neutral class and switch to resnet34

Browse files
Files changed (3) hide show
  1. app.py +2 -2
  2. export.pkl +2 -2
  3. neutral.jpg +0 -0
app.py CHANGED
@@ -11,9 +11,9 @@ def predict(img):
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
  title = "Emotion Classifier"
14
- description = "An emotion classifier trained on AffectNet with fastai. Identifies emotions of anger, disgust, fear, happy, neutral, and sad."
15
 
16
- examples = ["happy.jpg", "neutral.jpg", "sad.jpg", "angry.jpg", "fear.jpg", "disgust.jpg"]
17
 
18
  gr.Interface(
19
  fn=predict,
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
  title = "Emotion Classifier"
14
+ description = "An emotion classifier trained on AffectNet with fastai. Identifies emotions of anger, disgust, fear, happy, and sad."
15
 
16
+ examples = ["happy.jpg", "sad.jpg", "angry.jpg", "fear.jpg", "disgust.jpg"]
17
 
18
  gr.Interface(
19
  fn=predict,
export.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2657c44c57ddd966f12825333059e05a94116ff9edbb7c5b6e95cba8f5f3074c
3
- size 242595533
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffcda749efec518645832aa25e02f2d7fbd80d541d118faf56b46dc41279cf05
3
+ size 87893409
neutral.jpg DELETED
Binary file (16.6 kB)