tensorgirl commited on
Commit
38a3ff0
1 Parent(s): c4667f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -125,8 +125,8 @@ def fn(image):
125
  img = np.expand_dims(img,axis=0)
126
  feats = backbone.predict(img)
127
  pred = model_xgb.predict(feats)
128
-
129
- return emotions[pred]
130
 
131
 
132
  demo = gr.Interface(
 
125
  img = np.expand_dims(img,axis=0)
126
  feats = backbone.predict(img)
127
  pred = model_xgb.predict(feats)
128
+ print(pred)
129
+ return emotions[pred[0]]
130
 
131
 
132
  demo = gr.Interface(