Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -44,8 +44,8 @@ def health():
|
|
44 |
|
45 |
@app.route('/compare', methods=['POST'])
|
46 |
def compare():
|
47 |
-
jobs_skills = request.json.get('
|
48 |
-
employee_skills = request.json.get('
|
49 |
|
50 |
# Validation
|
51 |
if not isinstance(jobs_skills, list) or not all(isinstance(skill, str) for skill in jobs_skills):
|
|
|
44 |
|
45 |
@app.route('/compare', methods=['POST'])
|
46 |
def compare():
|
47 |
+
jobs_skills = request.json.get('jobs_skills') # Swapped positions of employee_skills and jobs_skills
|
48 |
+
employee_skills = request.json.get('employee_skills') # Swapped positions of employee_skills and jobs_skills
|
49 |
|
50 |
# Validation
|
51 |
if not isinstance(jobs_skills, list) or not all(isinstance(skill, str) for skill in jobs_skills):
|