Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,15 +65,6 @@ def process_jd_cv(jd, cv):
|
|
| 65 |
jd = jd[:3500]
|
| 66 |
cv = cv[:3500]
|
| 67 |
|
| 68 |
-
# Log the action to Supabase
|
| 69 |
-
email = "guest" # Placeholder, can be updated to actual user if authentication is added
|
| 70 |
-
supabase.table('audit_logs').insert({
|
| 71 |
-
"user_email": email,
|
| 72 |
-
"action": "rate_jd",
|
| 73 |
-
"timestamp": datetime.utcnow().isoformat(),
|
| 74 |
-
"details": {"job_description": jd, "cv": cv, "score": score}
|
| 75 |
-
}).execute()
|
| 76 |
-
|
| 77 |
# Calculate the final rating
|
| 78 |
rating = calculate_profile_rating(jd, cv)
|
| 79 |
return f"Profile Rating: {rating}/10"
|
|
|
|
| 65 |
jd = jd[:3500]
|
| 66 |
cv = cv[:3500]
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
# Calculate the final rating
|
| 69 |
rating = calculate_profile_rating(jd, cv)
|
| 70 |
return f"Profile Rating: {rating}/10"
|