Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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 |
-
|
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()
|