Spaces:
Running
Running
Commit ·
46cb71a
1
Parent(s): 14bae4c
fixed ai services for ci cd
Browse files
app/services/ai_service.py
CHANGED
|
@@ -3,8 +3,6 @@ from google import genai
|
|
| 3 |
from google.genai import types
|
| 4 |
from app.cores.config import settings
|
| 5 |
|
| 6 |
-
client = genai.Client(api_key=settings.GEMINI_API_KEY)
|
| 7 |
-
|
| 8 |
SYSTEM_PROMPT = """You are a resume analysis assistant. Compare the candidate's resume text against a job description and respond with ONLY valid JSON (no markdown, no preamble, no code fences) in exactly this shape:
|
| 9 |
|
| 10 |
{
|
|
@@ -22,6 +20,8 @@ SYSTEM_PROMPT = """You are a resume analysis assistant. Compare the candidate's
|
|
| 22 |
|
| 23 |
|
| 24 |
def analyze_resume_against_jd(resume_text: str, jd_text: str) -> dict:
|
|
|
|
|
|
|
| 25 |
user_prompt = f"""RESUME:
|
| 26 |
{resume_text}
|
| 27 |
|
|
|
|
| 3 |
from google.genai import types
|
| 4 |
from app.cores.config import settings
|
| 5 |
|
|
|
|
|
|
|
| 6 |
SYSTEM_PROMPT = """You are a resume analysis assistant. Compare the candidate's resume text against a job description and respond with ONLY valid JSON (no markdown, no preamble, no code fences) in exactly this shape:
|
| 7 |
|
| 8 |
{
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
def analyze_resume_against_jd(resume_text: str, jd_text: str) -> dict:
|
| 23 |
+
client = genai.Client(api_key=settings.GEMINI_API_KEY)
|
| 24 |
+
|
| 25 |
user_prompt = f"""RESUME:
|
| 26 |
{resume_text}
|
| 27 |
|