Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,7 @@ from reportlab.lib.pagesizes import letter
|
|
| 11 |
from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer
|
| 12 |
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
|
| 13 |
|
|
|
|
| 14 |
|
| 15 |
# Utility Functions
|
| 16 |
def read_pdf(file):
|
|
@@ -261,7 +262,7 @@ class JobAnalyzer:
|
|
| 261 |
)
|
| 262 |
response = client.chat.completions.create(
|
| 263 |
# model="gpt-4",
|
| 264 |
-
model=
|
| 265 |
messages=[{
|
| 266 |
"role": "user",
|
| 267 |
"content": prompt.format(description=job_description)
|
|
@@ -302,7 +303,7 @@ class JobAnalyzer:
|
|
| 302 |
)
|
| 303 |
response = client.chat.completions.create(
|
| 304 |
# model="gpt-4",
|
| 305 |
-
model=
|
| 306 |
messages=[{
|
| 307 |
"role": "user",
|
| 308 |
"content": prompt.format(resume=resume_text)
|
|
@@ -354,7 +355,7 @@ Focus on providing detailed, actionable insights for each field. Keep the JSON s
|
|
| 354 |
)
|
| 355 |
response = client.chat.completions.create(
|
| 356 |
# model="gpt-4",
|
| 357 |
-
model=
|
| 358 |
messages=[{
|
| 359 |
"role": "user",
|
| 360 |
"content": prompt.format(
|
|
@@ -422,7 +423,7 @@ class CoverLetterGenerator:
|
|
| 422 |
)
|
| 423 |
response = client.chat.completions.create(
|
| 424 |
# model="gpt-4",
|
| 425 |
-
model=
|
| 426 |
messages=[{
|
| 427 |
"role": "user",
|
| 428 |
"content": prompt.format(
|
|
|
|
| 11 |
from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer
|
| 12 |
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
|
| 13 |
|
| 14 |
+
model_name='deepseek/deepseek-chat-v3-0324:free'
|
| 15 |
|
| 16 |
# Utility Functions
|
| 17 |
def read_pdf(file):
|
|
|
|
| 262 |
)
|
| 263 |
response = client.chat.completions.create(
|
| 264 |
# model="gpt-4",
|
| 265 |
+
model=model_name,
|
| 266 |
messages=[{
|
| 267 |
"role": "user",
|
| 268 |
"content": prompt.format(description=job_description)
|
|
|
|
| 303 |
)
|
| 304 |
response = client.chat.completions.create(
|
| 305 |
# model="gpt-4",
|
| 306 |
+
model=model_name,
|
| 307 |
messages=[{
|
| 308 |
"role": "user",
|
| 309 |
"content": prompt.format(resume=resume_text)
|
|
|
|
| 355 |
)
|
| 356 |
response = client.chat.completions.create(
|
| 357 |
# model="gpt-4",
|
| 358 |
+
model=model_name,
|
| 359 |
messages=[{
|
| 360 |
"role": "user",
|
| 361 |
"content": prompt.format(
|
|
|
|
| 423 |
)
|
| 424 |
response = client.chat.completions.create(
|
| 425 |
# model="gpt-4",
|
| 426 |
+
model=model_name,
|
| 427 |
messages=[{
|
| 428 |
"role": "user",
|
| 429 |
"content": prompt.format(
|