Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ def analyze_with_mistral(resume_text, job_description):
|
|
| 53 |
TOGETHER_API_KEY = os.getenv("HUGGINGFACE_API_KEY")
|
| 54 |
url = "https://api.together.xyz/v1/chat/completions"
|
| 55 |
|
| 56 |
-
|
| 57 |
{
|
| 58 |
"role": "system",
|
| 59 |
"content": "You are an AI expert in Applicant Tracking System (ATS) resume analysis. Your task is to evaluate resumes for ATS compatibility based on provided job descriptions and return results in a specific JSON format."
|
|
@@ -109,7 +109,7 @@ def analyze_with_mistral(resume_text, job_description):
|
|
| 109 |
{job_description}
|
| 110 |
"""
|
| 111 |
}
|
| 112 |
-
]
|
| 113 |
|
| 114 |
payload = {
|
| 115 |
"model": "mistralai/Mistral-7B-Instruct-v0.3",
|
|
|
|
| 53 |
TOGETHER_API_KEY = os.getenv("HUGGINGFACE_API_KEY")
|
| 54 |
url = "https://api.together.xyz/v1/chat/completions"
|
| 55 |
|
| 56 |
+
messages = [
|
| 57 |
{
|
| 58 |
"role": "system",
|
| 59 |
"content": "You are an AI expert in Applicant Tracking System (ATS) resume analysis. Your task is to evaluate resumes for ATS compatibility based on provided job descriptions and return results in a specific JSON format."
|
|
|
|
| 109 |
{job_description}
|
| 110 |
"""
|
| 111 |
}
|
| 112 |
+
]
|
| 113 |
|
| 114 |
payload = {
|
| 115 |
"model": "mistralai/Mistral-7B-Instruct-v0.3",
|