Spaces:
Sleeping
Sleeping
Commit
·
2fd8c7c
1
Parent(s):
87fac06
exp rec code
Browse files
app/Hackathon_setup/exp_recognition.py
CHANGED
|
@@ -74,6 +74,6 @@ def get_expression(img):
|
|
| 74 |
face = trnscm(face).unsqueeze(0)
|
| 75 |
output = face_det_net(face)
|
| 76 |
_, pred = torch.max(output, dim=1)
|
| 77 |
-
return classes[pred]
|
| 78 |
|
| 79 |
return "YET TO BE CODED"
|
|
|
|
| 74 |
face = trnscm(face).unsqueeze(0)
|
| 75 |
output = face_det_net(face)
|
| 76 |
_, pred = torch.max(output, dim=1)
|
| 77 |
+
return classes[pred.item()]
|
| 78 |
|
| 79 |
return "YET TO BE CODED"
|