abajaj commited on
Commit
aa17cbb
1 Parent(s): f3ebf84

Initial Comit

Browse files
app/Hackathon_setup/face_recognition.py CHANGED
@@ -13,6 +13,7 @@ import pickle
13
  # Add more imports if required
14
  from torch.autograd import Variable
15
  import torch.nn.functional as F
 
16
 
17
 
18
  ###########################################################################################################################################
@@ -113,6 +114,6 @@ def get_face_class(img1):
113
  classifier = joblib.load(current_path + '/classifier.pkl.pkl')
114
  pred = classifier.predict(output).item()
115
  name = classes[pred]
116
- text = pred + " - " + name
117
 
118
  return text
 
13
  # Add more imports if required
14
  from torch.autograd import Variable
15
  import torch.nn.functional as F
16
+ import joblib
17
 
18
 
19
  ###########################################################################################################################################
 
114
  classifier = joblib.load(current_path + '/classifier.pkl.pkl')
115
  pred = classifier.predict(output).item()
116
  name = classes[pred]
117
+ text = str(pred) + " - " + name
118
 
119
  return text