Spaces:
Runtime error
Runtime error
Commit
•
38a3ff0
1
Parent(s):
c4667f0
Update app.py
Browse files
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(
|