Ram-1103 commited on
Commit
5bf89ac
·
verified ·
1 Parent(s): 55ace49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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/novita/v1",
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/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."}
 
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."}