Spaces:
Runtime error
Runtime error
Added prompt 3 for Ideal resume
Browse files
app.py
CHANGED
@@ -63,8 +63,9 @@ def main():
|
|
63 |
pdf_docs = st.file_uploader("Upload Resume (pdf)", accept_multiple_files=True)
|
64 |
|
65 |
|
66 |
-
submit1 = st.button("
|
67 |
submit2 = st.button("Percentage Match")
|
|
|
68 |
|
69 |
input_prompt1 = """
|
70 |
You are an experienced Technical Human Resource Manager experienced in the field of {}, your task is to review the provided resume against the job description.
|
@@ -83,6 +84,21 @@ def main():
|
|
83 |
Job Description: {}
|
84 |
"""
|
85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
if submit1:
|
87 |
if pdf_docs is not None:
|
88 |
pdf_content = get_pdf_text(pdf_docs)
|
@@ -103,6 +119,16 @@ def main():
|
|
103 |
else:
|
104 |
st.write("Please upload resume")
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
|
107 |
|
108 |
if __name__ == "__main__":
|
|
|
63 |
pdf_docs = st.file_uploader("Upload Resume (pdf)", accept_multiple_files=True)
|
64 |
|
65 |
|
66 |
+
submit1 = st.button("Resume evaluation against job role")
|
67 |
submit2 = st.button("Percentage Match")
|
68 |
+
submit3 = st.button("Ideal Resume")
|
69 |
|
70 |
input_prompt1 = """
|
71 |
You are an experienced Technical Human Resource Manager experienced in the field of {}, your task is to review the provided resume against the job description.
|
|
|
84 |
Job Description: {}
|
85 |
"""
|
86 |
|
87 |
+
input_prompt3 = """
|
88 |
+
You are an expert at making resumes for the job role of {}. Your task is to make an ideal resume for the job description I give you using ONLY the following three sections and then give me a keyword match percentage between the created resume and the job description at the end:
|
89 |
+
1. The skills section with comma separated technical tools and frameworks.
|
90 |
+
2. The work experience section with 3 job roles.
|
91 |
+
3. Projects section with six ADVANCED projects and you have to
|
92 |
+
make up your own projects from imagination that would use the same
|
93 |
+
tech stack specified in the job description with minimum overlap of tech stack between the projects.
|
94 |
+
Each project will have a project title followed by two bullet points.
|
95 |
+
First bullet point is the project description
|
96 |
+
and the second bullet point is the tech stack used to make the project.
|
97 |
+
|
98 |
+
You also have to give me exact value for keyword match percentage between the resume you created and the job description.
|
99 |
+
Job Description: {}
|
100 |
+
"""
|
101 |
+
|
102 |
if submit1:
|
103 |
if pdf_docs is not None:
|
104 |
pdf_content = get_pdf_text(pdf_docs)
|
|
|
119 |
else:
|
120 |
st.write("Please upload resume")
|
121 |
|
122 |
+
elif submit3:
|
123 |
+
if input_text_jd is not None:
|
124 |
+
pdf_content = get_pdf_text(pdf_docs)
|
125 |
+
prompt = input_prompt3.format(input_text_title, input_text_jd)
|
126 |
+
response = get_openai_response(prompt)
|
127 |
+
st.subheader("Response: ")
|
128 |
+
st.write(response)
|
129 |
+
else:
|
130 |
+
st.write("Please upload resume")
|
131 |
+
|
132 |
|
133 |
|
134 |
if __name__ == "__main__":
|