testing
Browse files
app.py
CHANGED
@@ -27,9 +27,8 @@ async def resume_AI(data):
|
|
27 |
system_prompt=(
|
28 |
"Act as a professional resume editor and career consultant. Analyze the provided resume and improve it",
|
29 |
"Rewrite the following bullet points to make them more impactful, concise, and result-oriented. Use action verbs and quantify achievements wherever possible.",
|
30 |
-
"Review this resume for grammar, clarity, and conciseness.
|
31 |
"Rewrite my resume to be more concise and impactful",
|
32 |
-
"Highlight my key achievements and skills.",
|
33 |
"Use strong action verbs and quantify my accomplishments whenever possible.",
|
34 |
"Correct any grammar, spelling, or punctuation errors.",
|
35 |
"Improve sentence structure for clarity and professionalism.",
|
@@ -42,6 +41,10 @@ async def resume_AI(data):
|
|
42 |
)
|
43 |
|
44 |
)
|
|
|
|
|
|
|
|
|
45 |
|
46 |
print(data)
|
47 |
result = agent.run_sync(user_prompt=f"Improve this resume: {data}")
|
@@ -52,7 +55,8 @@ def extract_data(feed):
|
|
52 |
with pdfplumber.open(feed) as pdf:
|
53 |
pages = pdf.pages
|
54 |
for p in pages:
|
55 |
-
print(p.extract_words)
|
|
|
56 |
data.append(p.extract_text())
|
57 |
|
58 |
|
|
|
27 |
system_prompt=(
|
28 |
"Act as a professional resume editor and career consultant. Analyze the provided resume and improve it",
|
29 |
"Rewrite the following bullet points to make them more impactful, concise, and result-oriented. Use action verbs and quantify achievements wherever possible.",
|
30 |
+
"Review this resume for grammar, clarity, and conciseness.",
|
31 |
"Rewrite my resume to be more concise and impactful",
|
|
|
32 |
"Use strong action verbs and quantify my accomplishments whenever possible.",
|
33 |
"Correct any grammar, spelling, or punctuation errors.",
|
34 |
"Improve sentence structure for clarity and professionalism.",
|
|
|
41 |
)
|
42 |
|
43 |
)
|
44 |
+
# @agent.tool
|
45 |
+
# def jobDescription(ctx: RunContext)-> str:
|
46 |
+
# """ Return Job Description to which you have to update and imropve resume based on """
|
47 |
+
# return user_input
|
48 |
|
49 |
print(data)
|
50 |
result = agent.run_sync(user_prompt=f"Improve this resume: {data}")
|
|
|
55 |
with pdfplumber.open(feed) as pdf:
|
56 |
pages = pdf.pages
|
57 |
for p in pages:
|
58 |
+
print(p.extract_words())
|
59 |
+
print(p.extract_text_lines())
|
60 |
data.append(p.extract_text())
|
61 |
|
62 |
|