Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import os
|
|
| 3 |
from openai import OpenAI
|
| 4 |
|
| 5 |
client = OpenAI(
|
| 6 |
-
base_url="https://router.huggingface.co/
|
| 7 |
api_key=os.environ.get("Rejected_tk"),
|
| 8 |
)
|
| 9 |
|
|
@@ -45,7 +45,7 @@ def analyze(resume_text, job_description):
|
|
| 45 |
return "⚠️ Please paste both your resume and the job description."
|
| 46 |
try:
|
| 47 |
response = client.chat.completions.create(
|
| 48 |
-
model="meta-llama/
|
| 49 |
messages=[
|
| 50 |
{"role": "system", "content": SYSTEM_PROMPT},
|
| 51 |
{"role": "user", "content": f"Resume:\n{resume_text}\n\nJob Description:\n{job_description}\n\nGive the full rejection report."}
|
|
|
|
| 3 |
from openai import OpenAI
|
| 4 |
|
| 5 |
client = OpenAI(
|
| 6 |
+
base_url="https://router.huggingface.co/v1",
|
| 7 |
api_key=os.environ.get("Rejected_tk"),
|
| 8 |
)
|
| 9 |
|
|
|
|
| 45 |
return "⚠️ Please paste both your resume and the job description."
|
| 46 |
try:
|
| 47 |
response = client.chat.completions.create(
|
| 48 |
+
model="meta-llama/Llama-3.1-8B-Instruct",
|
| 49 |
messages=[
|
| 50 |
{"role": "system", "content": SYSTEM_PROMPT},
|
| 51 |
{"role": "user", "content": f"Resume:\n{resume_text}\n\nJob Description:\n{job_description}\n\nGive the full rejection report."}
|