abajaj commited on
Commit
58c976e
1 Parent(s): 9f14dd4

Initial Comit

Browse files
app/Hackathon_setup/exp_recognition.py CHANGED
@@ -75,7 +75,7 @@ def get_expression(img):
75
  with torch.no_grad():
76
  output = face_det_net(updatedface)
77
  _, predicted = torch.max(output, 1)
78
- label = classes[predicted]
79
  expression = str(predicted) + " - " + label
80
 
81
  # YOUR CODE HERE, return expression using your model
 
75
  with torch.no_grad():
76
  output = face_det_net(updatedface)
77
  _, predicted = torch.max(output, 1)
78
+ label = classes[predicted.item()]
79
  expression = str(predicted) + " - " + label
80
 
81
  # YOUR CODE HERE, return expression using your model