Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,22 +50,43 @@ if upload_file is not None:
|
|
50 |
st.write('PDF uploaded successfully')
|
51 |
|
52 |
submit_btn1 =st.button("Tell me about yourself?")
|
53 |
-
|
54 |
submit_btn2 =st.button("How can I improve my skills?")
|
55 |
-
|
56 |
submit_btn3 =st.button("Percentage match")
|
|
|
|
|
|
|
57 |
|
58 |
-
#
|
59 |
input_prompt1 = """
|
60 |
-
You are an experienced
|
61 |
"""
|
62 |
|
63 |
-
|
|
|
64 |
input_prompt2 = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
-
|
|
|
|
|
67 |
"""
|
68 |
|
|
|
|
|
|
|
|
|
|
|
69 |
if submit_btn1:
|
70 |
if upload_file is not None:
|
71 |
pdf_content= input_pdf_setup(upload_file)
|
@@ -82,4 +103,32 @@ elif submit_btn2:
|
|
82 |
st.subheader("The response is:")
|
83 |
st.write(response)
|
84 |
else:
|
85 |
-
st.write("Please upload the resume")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
st.write('PDF uploaded successfully')
|
51 |
|
52 |
submit_btn1 =st.button("Tell me about yourself?")
|
|
|
53 |
submit_btn2 =st.button("How can I improve my skills?")
|
|
|
54 |
submit_btn3 =st.button("Percentage match")
|
55 |
+
submit_btn4 = st.button("Identify top candidates")
|
56 |
+
submit_btn5 = st.button("Suggest resume improvements")
|
57 |
+
submit_btn6 = st.button("Summary of strengths and weaknesses")
|
58 |
|
59 |
+
# This is the prompt for the GENAI to act as an HR Tech Recruiter
|
60 |
input_prompt1 = """
|
61 |
+
You are an experienced HR professional specializing in data science, full-stack web development, and big data engineering. Use our advanced Tech HR LLM to analyze the provided resumes against the corresponding job descriptions. Ensure that candidate qualifications align precisely with the required skills and criteria for these roles.
|
62 |
"""
|
63 |
|
64 |
+
|
65 |
+
# This is the prompt for the GENAI to act as an ATS System
|
66 |
input_prompt2 = """
|
67 |
+
You are a proficient Tech HR specialist adept in arts, DevOps, and related fields. Use our Tech HR LLM to meticulously review resumes against the corresponding job descriptions. Ensure precise alignment between candidate qualifications and the required skill sets for optimal recruitment outcomes.
|
68 |
+
"""
|
69 |
+
|
70 |
+
# This is the prompt for the GENAI to provide a percentage match on the resume based on job description
|
71 |
+
input_prompt3 = """
|
72 |
+
You are a skilled ATS (Applicant Tracking System) scanner with a deep understanding of data science and ATS functionality. Evaluate the resume against the provided job description. Provide the percentage match if the resume aligns with the job description. Present the output as follows: 1) percentage match, 2) missing keywords, and 3) final thoughts.
|
73 |
+
"""
|
74 |
+
|
75 |
+
# This is the prompt for the GENAI to identify top candidates from a pool of resumes
|
76 |
+
input_prompt4 = """
|
77 |
+
You are an experienced Tech HR specialist with expertise in candidate selection for data science, full-stack web development, and big data engineering roles. Use our Tech HR LLM to identify the top candidates from a pool of resumes based on the provided job descriptions. Rank the candidates in order of best fit, highlighting their strengths and relevant qualifications.
|
78 |
+
"""
|
79 |
|
80 |
+
# This is the prompt for the GENAI to suggest improvements for a candidate's resume
|
81 |
+
input_prompt5 = """
|
82 |
+
You are a proficient resume analyst with expertise in optimizing resumes for data science, DevOps, and arts roles. Use our Tech HR LLM to review a candidate's resume and suggest specific improvements to enhance its alignment with a provided job description. Focus on optimizing keywords, skills, and overall presentation.
|
83 |
"""
|
84 |
|
85 |
+
# This is the prompt for the GENAI to provide a summary of candidate strengths and weaknesses
|
86 |
+
input_prompt6 = """
|
87 |
+
You are an experienced Tech HR analyst with a strong understanding of candidate evaluation. Use our Tech HR LLM to provide a summary of the strengths and weaknesses of a candidate based on their resume and the provided job description. Highlight key areas where the candidate excels and areas where they may need improvement.
|
88 |
+
|
89 |
+
|
90 |
if submit_btn1:
|
91 |
if upload_file is not None:
|
92 |
pdf_content= input_pdf_setup(upload_file)
|
|
|
103 |
st.subheader("The response is:")
|
104 |
st.write(response)
|
105 |
else:
|
106 |
+
st.write("Please upload the resume")
|
107 |
+
|
108 |
+
if submit_btn3:
|
109 |
+
if upload_file is not None:
|
110 |
+
pdf_content= input_pdf_setup(upload_file)
|
111 |
+
response = get_gemini_response(input_prompt3, pdf_content, input_text)
|
112 |
+
st.subheader("The response is:")
|
113 |
+
st.write(response)
|
114 |
+
|
115 |
+
if submit_btn4:
|
116 |
+
if upload_file is not None:
|
117 |
+
pdf_content= input_pdf_setup(upload_file)
|
118 |
+
response = get_gemini_response(input_prompt4, pdf_content, input_text)
|
119 |
+
st.subheader("The response is:")
|
120 |
+
st.write(response)
|
121 |
+
|
122 |
+
if submit_btn5:
|
123 |
+
if upload_file is not None:
|
124 |
+
pdf_content= input_pdf_setup(upload_file)
|
125 |
+
response = get_gemini_response(input_prompt5, pdf_content, input_text)
|
126 |
+
st.subheader("The response is:")
|
127 |
+
st.write(response)
|
128 |
+
|
129 |
+
if submit_btn6:
|
130 |
+
if upload_file is not None:
|
131 |
+
pdf_content= input_pdf_setup(upload_file)
|
132 |
+
response = get_gemini_response(input_prompt6, pdf_content, input_text)
|
133 |
+
st.subheader("The response is:")
|
134 |
+
st.write(response)
|