Spaces:
Runtime error
Runtime error
Update app/Hackathon_setup/exp_recognition.py
Browse files
app/Hackathon_setup/exp_recognition.py
CHANGED
|
@@ -76,4 +76,4 @@ def get_expression(img):
|
|
| 76 |
output = face_det_net(face)
|
| 77 |
print(output.shape)
|
| 78 |
_, pred = torch.max(output, dim=1)
|
| 79 |
-
return classes[pred]
|
|
|
|
| 76 |
output = face_det_net(face)
|
| 77 |
print(output.shape)
|
| 78 |
_, pred = torch.max(output, dim=1)
|
| 79 |
+
return classes[pred.item()]
|