zayanomar5 commited on
Commit
8a6c48e
·
verified ·
1 Parent(s): 2716c13

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -60,8 +60,7 @@ def compare():
60
  job_embeddings = model.encode(jobs_skills)
61
  employee_embeddings = model.encode(employee_skills)
62
 
63
- # Computing cosine similarity between employee skills and each job
64
- similarity_scores = []
65
  employee_embeddings_tensor = torch.from_numpy(employee_embeddings).unsqueeze(0)
66
 
67
  for i, job_e in enumerate(job_embeddings):
@@ -75,5 +74,6 @@ return jsonify(similarity_scores)
75
 
76
 
77
 
 
78
  if __name__ == '__main__':
79
  app.run()
 
60
  job_embeddings = model.encode(jobs_skills)
61
  employee_embeddings = model.encode(employee_skills)
62
 
63
+ similarity_scores = []
 
64
  employee_embeddings_tensor = torch.from_numpy(employee_embeddings).unsqueeze(0)
65
 
66
  for i, job_e in enumerate(job_embeddings):
 
74
 
75
 
76
 
77
+
78
  if __name__ == '__main__':
79
  app.run()