cover letter
Browse files
app.py
CHANGED
@@ -42,9 +42,29 @@ async def resume_AI(data):
|
|
42 |
|
43 |
)
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
print(data)
|
46 |
result = agent.run_sync(user_prompt=f"Improve this resume: {data}")
|
|
|
47 |
st.markdown(result.data)
|
|
|
48 |
|
49 |
def extract_data(feed):
|
50 |
|
@@ -69,7 +89,7 @@ def main():
|
|
69 |
binary_data = uploaded_file.getvalue()
|
70 |
pdf_viewer(input=binary_data,
|
71 |
width=700)
|
72 |
-
if st.button("Improve Resume"):
|
73 |
ai_resume(data)
|
74 |
|
75 |
|
|
|
42 |
|
43 |
)
|
44 |
|
45 |
+
cover_letter_agent = Agent(model=model,
|
46 |
+
system_prompt=(
|
47 |
+
"Act as a professional career consultant and cover letter writer. Based on the provided resume",
|
48 |
+
"Clearly states the applicant’s interest in the role and the company.",
|
49 |
+
"Summarizes the applicant's most relevant skills, experiences, and achievements.",
|
50 |
+
"Provides specific examples or metrics to demonstrate impact and success.",
|
51 |
+
"Reiterates excitement for the opportunity.",
|
52 |
+
"Invites further discussion and expresses gratitude for consideration.",
|
53 |
+
"Provides a professional closing, including the applicant’s name and contact information.",
|
54 |
+
"Use the following structure:",
|
55 |
+
"1. Greeting: Address the hiring manager by name, if available.",
|
56 |
+
"2. Opening Paragraph: State interest in the role and company.",
|
57 |
+
"3. Middle Paragraphs: Highlight key qualifications and experiences, tailored to the job description.",
|
58 |
+
"4. Closing Paragraph: Express enthusiasm and invite further discussion."
|
59 |
+
)
|
60 |
+
|
61 |
+
)
|
62 |
+
|
63 |
print(data)
|
64 |
result = agent.run_sync(user_prompt=f"Improve this resume: {data}")
|
65 |
+
result_1 = cover_letter_agent.run_sync(user_prompt= f"Write cover letter for this resume {result.data}")
|
66 |
st.markdown(result.data)
|
67 |
+
st.text(result_1)
|
68 |
|
69 |
def extract_data(feed):
|
70 |
|
|
|
89 |
binary_data = uploaded_file.getvalue()
|
90 |
pdf_viewer(input=binary_data,
|
91 |
width=700)
|
92 |
+
if st.button("Improve Resume and Cover letter"):
|
93 |
ai_resume(data)
|
94 |
|
95 |
|