sancharikadebnath commited on
Commit
4b52d41
·
1 Parent(s): f5331aa

Modified Prompt

Browse files
app.py CHANGED
@@ -43,12 +43,18 @@ st.title("🚀 Career Enchanter 🚀")
43
  text = docLoader.load_doc()
44
  st.session_state['doc_text'] = text
45
 
46
- # Job Description input
47
- jd = st.text_area("Job Description: ", key="input")
48
 
 
 
 
 
 
 
49
  # Sidebar options
50
  with st.sidebar:
51
- st.title('🔮 Career Enchanter Options 🔮')
 
52
  option = st.radio("Select an option: ", (
53
  "ATS Score",
54
  "Resume Review",
 
43
  text = docLoader.load_doc()
44
  st.session_state['doc_text'] = text
45
 
46
+ jd, doc = st.columns(2)
 
47
 
48
+ with jd:
49
+ # Job Description input
50
+ jd = st.text_area("Job Description: ", key="input")
51
+ if text:
52
+ with doc:
53
+ extracted= st.text_area("Extracted Data From Resume", value=st.session_state['doc_text'])
54
  # Sidebar options
55
  with st.sidebar:
56
+ st.title('🔮 Career Enchanter 🔮')
57
+ st.subheader('Options: ')
58
  option = st.radio("Select an option: ", (
59
  "ATS Score",
60
  "Resume Review",
components/__pycache__/docLoader.cpython-39.pyc CHANGED
Binary files a/components/__pycache__/docLoader.cpython-39.pyc and b/components/__pycache__/docLoader.cpython-39.pyc differ
 
components/__pycache__/functions.cpython-39.pyc CHANGED
Binary files a/components/__pycache__/functions.cpython-39.pyc and b/components/__pycache__/functions.cpython-39.pyc differ
 
components/__pycache__/prompts.cpython-39.pyc CHANGED
Binary files a/components/__pycache__/prompts.cpython-39.pyc and b/components/__pycache__/prompts.cpython-39.pyc differ
 
components/docLoader.py CHANGED
@@ -22,7 +22,6 @@ class docLoader():
22
 
23
  if file_extension in load_functions:
24
  text = load_functions[file_extension](uploaded_file)
25
- st.text_area("Extracted From Document", value=text)
26
  else:
27
  st.write("Unsupported file format")
28
 
 
22
 
23
  if file_extension in load_functions:
24
  text = load_functions[file_extension](uploaded_file)
 
25
  else:
26
  st.write("Unsupported file format")
27
 
components/functions.py CHANGED
@@ -95,5 +95,8 @@ class Functions():
95
  job_desc_embeddings = get_bert_embeddings(job_desc)
96
  similarity_score = calculate_cosine_similarity(resume_embeddings, job_desc_embeddings)
97
  missing_keywords = [word for word in word_tokenize(job_desc) if word not in word_tokenize(resume)]
 
 
 
98
  return str(round(similarity_score * 100, 2)), missing_keywords
99
 
 
95
  job_desc_embeddings = get_bert_embeddings(job_desc)
96
  similarity_score = calculate_cosine_similarity(resume_embeddings, job_desc_embeddings)
97
  missing_keywords = [word for word in word_tokenize(job_desc) if word not in word_tokenize(resume)]
98
+ if len(missing_keywords) == 0 :
99
+ missing_keywords = ['Congratualitions, All the keywords match with your resume!!']
100
+ print(missing_keywords)
101
  return str(round(similarity_score * 100, 2)), missing_keywords
102
 
components/prompts.py CHANGED
@@ -1,6 +1,6 @@
1
  resume_review = """
2
- You are an experienced Technical Human Resource Manager,your task is to review the provided resume against the job description.
3
- Please share your professional evaluation on whether the candidate's profile aligns with the role.
4
  Highlight the strengths and weaknesses of the applicant in relation to the specified job requirements.
5
 
6
  Human-Like Resume Review for {info}
@@ -52,7 +52,7 @@ ats_resume = """
52
 
53
  ats_score = """
54
  You are an skilled ATS (Applicant Tracking System) scanner with a deep understanding of data science and ATS functionality,
55
- your task is to evaluate the resume against the provided job description. give me the percentage of match if the resume matches
56
  the job description. First the output should come as percentage and then keywords missing.
57
 
58
  Job Description: {input_text}
@@ -101,17 +101,26 @@ resume_improve = """
101
  """
102
 
103
  resume_enhance = """
104
- You are an experienced Technical Human Resource Manager, your task is to Provide specific suggestions in bullet points to tailor the resume to the job description from the provided paragraph.
105
- Please share your professional suggestions on what to write and how to write the given paragraph so that the candidate's profile aligns with the role.
106
- Highlight weaknesses of the applicant in relation to the specified job requirements and provide sugestions on how to enhance it and make it strength.
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
- Job Description: {input_text}
109
- Resume: {doc}
110
- paragraph: {info}
111
  """
112
 
113
  resume_recommendation = """
114
- You are an experienced Technical Human Resource Manager,your task is to Provide specific recommendations to tailor the resume to the job description.
115
  Suggest possible next steps, certifications, courses or experiences the person could do.
116
  Make sure the suggestions are all FACTUALLY ACCURATE given the original resume and specify
117
  which suggestions require further action. Mention where resume is good and where resume lacks. FOR EVERY CHANGE YOU SUGGEST, PROVIDE A SIMPLE EXPLANATION
@@ -122,8 +131,8 @@ Resume: {doc}
122
  """
123
 
124
  recommendation_section = """
125
- You are an experienced Technical Human Resource Manager,your task is to Provide specific recommendations to tailor the resume to the job description.
126
- Please share your professional recommendations on what to write and how to write the given pargraph so that the candidate's profile aligns with the role.
127
  Talk about each section of user's resume and talk good and bad points of it. Recommend how to modify it better.
128
 
129
  Job Description: {input_text}
@@ -151,58 +160,78 @@ Keyword: {info}
151
  """
152
 
153
  resume_update = """
154
- ## Writing an Updated Resume which is ATS friendly in latex format
155
 
156
- ### Step-by-Step Guide for the Updated Resume
 
 
157
 
158
- #### 1. Header
159
- - **Full Name**
160
- - **Contact Information:** Phone number, Email address, LinkedIn profile (if applicable)
161
- - **Location:** City, State (optional, depending on privacy preferences)
162
 
163
- #### 2. Professional Summary
164
- - Craft a 2-3 sentence summary focusing on key qualifications and alignment with the target job description.
165
 
166
- #### 3. Skills
167
- - List skills that are relevant to the job description.
168
- - Use bullet points and ensure to include keywords from the job description for ATS optimization.
169
 
170
- #### 4. Professional Experience
171
- - For each relevant position, include **Job Title**, **Company Name**, **Location**, and **Dates of Employment**.
172
- - Under each role, list bullet points that detail responsibilities and achievements, emphasizing quantifiable outcomes and incorporating job description keywords.
173
 
174
- #### 5. Education
175
- - List degrees obtained, including **Degree Title**, **Institution Name**, **Location**, and **Graduation Date**.
176
- - Add relevant coursework or projects if they align with the job description.
177
 
178
- #### 6. Certifications (Optional)
179
- - Include certifications relevant to the job description.
180
 
181
- #### 7. Additional Sections (Optional)
182
- - Sections like Volunteer Experience, Publications, or Awards can be added if they are relevant to the job and add value.
183
 
184
- #### 8. ATS Compatibility and Formatting
185
- - Ensure the resume format is simple with a standard, easy-to-read font like Arial or Times New Roman.
186
- - Avoid complex elements like tables or columns that can confuse ATS systems.
187
 
188
- #### 9. Final Review
189
- - Proofread for any spelling or grammatical errors.
190
- - Check alignment with the job description and ensure all important keywords are included.
191
 
192
- ### Conclusion:
193
- - Provide a brief summary highlighting the key changes made to the resume and how they align with the target job description.
194
- - Offer suggestions for any additional improvements or steps the candidate can take to further tailor their resume for similar roles in the future.
195
 
196
- ### Example
 
197
 
198
- - Create a new resume in the given LaTeX format.
199
 
200
- **Job Description:** {input_text}
201
 
202
- **Resume data:** {doc}
 
 
 
 
 
 
 
203
 
204
- The output should be first show step by step guide for updated resume after that generate new resume based on provided information
205
- and then also add the latex format of the generated resume .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  """
207
 
208
  #info contains company name also
@@ -212,7 +241,7 @@ Job Description: {input_text}
212
  Resume: {doc}
213
  ### Step-by-Step Guide for the Cover Letter
214
  #### 1. Contact Information and Date
215
- - Include your contact information at the top: Name, Address (optional), Phone Number, Email.
216
  - Add the date of writing the letter.
217
  #### 2. Salutation
218
  - If possible, address the letter to a specific person (e.g., "Dear [Hiring Manager's Name]").
@@ -222,21 +251,21 @@ Resume: {doc}
222
  - Mention the job title you’re applying for and where you found the job listing.
223
  - Briefly state why you are interested in the role and the company.
224
  #### 4. Body of the Letter (1-2 Paragraphs)
225
- - In the first paragraph, summarize your relevant experience and skills, aligning them with key requirements of the job description.
226
- - In the second paragraph, provide specific examples from your past work that demonstrate your abilities and successes. Use quantifiable achievements when possible.
227
- - Explain how your skills and experiences make you an ideal fit for the role and how you can contribute to the company.
228
  #### 5. Conclusion
229
- - Reiterate your enthusiasm for the position.
230
- - Mention any attached documents (like your resume or portfolio).
231
- - State your availability for an interview and propose the next steps or indicate your intention to follow up.
232
  #### 6. Sign-off
233
- - Close the letter with a professional sign-off such as "Sincerely" or "Best regards," followed by your name.
234
- - If you’re submitting a printed letter, leave space for your handwritten signature above your typed name.
235
  ### Final Tips:
236
  - Keep the cover letter concise, ideally not exceeding one page.
237
  - Tailor the letter to the job and company – avoid using a generic template.
238
  - Proofread carefully to avoid any spelling or grammatical errors.
239
- - Use a professional tone, but allow your personality to shine through.
240
  ## Example:
241
  - Provide an cover letter also as example
242
  """
@@ -247,35 +276,35 @@ Job Description: {input_text}
247
  Resume: {doc}
248
  ### Step-by-Step Guide for LinkedIn Update
249
  #### 1. LinkedIn Headline
250
- - Create a headline combining your current role or expertise, key skills from your resume, and aspects of the job you are targeting.
251
  - Example format: “[Current Role/Expertise] with [Key Skills] | Aspiring [Target Job Title]”
252
  #### 2. Profile Photo and Background Image
253
- - Choose a professional profile picture and a background image that reflects your professional brand.
254
  #### 3. About Section
255
- - Write a summary that includes your professional background, achievements, skills, and career aspirations, tailored to align with your resume and the job description.
256
  #### 4. Experience Section
257
- - Update to mirror your resume, highlighting roles, responsibilities, and achievements relevant to your career goals.
258
  - Use language and keywords from the job description to Improve alignment.
259
  #### 5. Education
260
- - Ensure your educational background matches your resume, including relevant courses and certifications.
261
  #### 6. Skills & Endorsements
262
- - Add and prioritize skills from your resume and the job description, focusing on those most relevant to your career goals.
263
  #### 7. Recommendations
264
- - Request recommendations that reinforce your skills and experiences, particularly those aligning with your target job.
265
  #### 8. Licenses and Certifications
266
- - Include any relevant certifications, aligning with both your resume and job description.
267
  #### 9. Volunteer Experience
268
- - Add volunteer work if it supports your professional image and career objectives.
269
  #### 10. Accomplishments
270
  - Include any relevant publications, patents, projects, honors, and awards.
271
  #### 11. Customized URL
272
- - Customize your LinkedIn URL for a professional touch.
273
  ### Final Steps:
274
  - Review for consistency in language and tone.
275
  - Proofread to ensure there are no errors.
276
- - Update your profile regularly to reflect your current professional status and aspirations.
277
  ### Conclusion:
278
- - Your LinkedIn profile should be a dynamic representation of your professional life, showcasing both your experience and personality, and aligned with your career goals and targeted job opportunities.
279
  """
280
 
281
  interview = """
@@ -286,7 +315,7 @@ Role: {info}
286
  ### Part 1: Tailored Interview Questions Based on Job Description
287
  #### 1. Role-Specific Technical Questions
288
  - Generate questions that assess skills and experiences directly related to the key requirements in the job description.
289
- - Example: "Your resume mentions experience in [specific skill from resume]; can you discuss how you've applied this skill in a past project?"
290
  #### 2. Behavioral Questions Related to Job Role
291
  - Formulate questions based on scenarios or challenges outlined in the job description.
292
  - Example: "The job description emphasizes teamwork. Can you share an experience where you successfully collaborated on a challenging project?"
@@ -295,7 +324,7 @@ Role: {info}
295
  - Example: "Given a scenario of [specific challenge in the job description], how would you approach solving it?"
296
  #### 4. Questions Assessing Cultural and Company Fit
297
  - Based on the company culture hinted at in the job description, prepare questions to evaluate the candidate's fit.
298
- - Example: "Our company values [specific value from job description]. Can you provide an example of how you've embodied this value in your professional life?"
299
  ### Part 2: Questions for the Candidate to Ask the Interviewer
300
  #### 1. Clarifications on Role Responsibilities
301
  - Suggest questions that seek deeper insights into the daily responsibilities and expectations.
 
1
  resume_review = """
2
+ You are an experienced Technical Human Resource Manager, task is to review the provided resume against the job description.
3
+ Please share professional evaluation on whether the candidate's profile aligns with the role.
4
  Highlight the strengths and weaknesses of the applicant in relation to the specified job requirements.
5
 
6
  Human-Like Resume Review for {info}
 
52
 
53
  ats_score = """
54
  You are an skilled ATS (Applicant Tracking System) scanner with a deep understanding of data science and ATS functionality,
55
+ task is to evaluate the resume against the provided job description. give me the percentage of match if the resume matches
56
  the job description. First the output should come as percentage and then keywords missing.
57
 
58
  Job Description: {input_text}
 
101
  """
102
 
103
  resume_enhance = """
104
+ * Job Description: {input_text}
105
+ * Resume: {doc}
106
+ * Paragraph: {info}
107
+
108
+ You are an experienced Technical Human Resource Manager, your task is to Provide bullet points from the given paragraph whcih also has some numerical value to quantify it to tailor the resume to the job description.
109
+ Please share your professional suggestions on what to write and how to write the given paragraph so that the candidate's profile aligns with the role.
110
+ Highlight weaknesses of the applicant in relation to the specified job requirements and provide sugestions on how to enhance it and make it strength. the outptut will have maximum 5 bullet points converted from given paragraph which have numerical values to quantify
111
+
112
+ Output:
113
+ ## Bullet Points:
114
+ - Maximum 5 bullet points generated from the given paragraph with some numerical value
115
+
116
+ ## Keywords can be added:
117
+ - Add keywords related to the job description into each bullet point
118
+ - Show Top % keywords to be added from job description
119
 
 
 
 
120
  """
121
 
122
  resume_recommendation = """
123
+ You are an experienced Technical Human Resource Manager, task is to Provide specific recommendations to tailor the resume to the job description.
124
  Suggest possible next steps, certifications, courses or experiences the person could do.
125
  Make sure the suggestions are all FACTUALLY ACCURATE given the original resume and specify
126
  which suggestions require further action. Mention where resume is good and where resume lacks. FOR EVERY CHANGE YOU SUGGEST, PROVIDE A SIMPLE EXPLANATION
 
131
  """
132
 
133
  recommendation_section = """
134
+ You are an experienced Technical Human Resource Manager, task is to Provide specific recommendations to tailor the resume to the job description.
135
+ Please share professional recommendations on what to write and how to write the given pargraph so that the candidate's profile aligns with the role.
136
  Talk about each section of user's resume and talk good and bad points of it. Recommend how to modify it better.
137
 
138
  Job Description: {input_text}
 
160
  """
161
 
162
  resume_update = """
 
163
 
164
+ Job Description: {input_text}
165
+ Resume: {doc}
166
+ This guide will walk you through creating a compelling resume optimized for Applicant Tracking Systems (ATS) using LaTeX.
167
 
168
+ ### Step-by-Step Guide To update resume
 
 
 
169
 
170
+ **1. Header:**
 
171
 
172
+ - Include **Full Name** in a prominent font size.
173
+ - Provide **Contact Information:** Phone number, Email address, and LinkedIn profile URL (optional).
174
+ - Mention **Location** (City, State) if comfortable.
175
 
176
+ **2. Professional Summary:**
 
 
177
 
178
+ - Craft a concise 2-3 sentence summary highlighting key qualifications and aligning them with the target job description.
 
 
179
 
180
+ **3. Skills:**
 
181
 
182
+ - List relevant skills using bullet points, emphasizing keywords from the job description to optimize for ATS.
 
183
 
184
+ **4. Professional Experience:**
 
 
185
 
186
+ - For each relevant position, include **Job Title**, **Company Name**, **Location**, and **Dates of Employment**.
187
+ - Under each role, detail responsibilities and achievements using bullet points. Emphasize quantifiable results and incorporate keywords from the job description.
 
188
 
189
+ **5. Education:**
 
 
190
 
191
+ - List degrees, including **Degree Title**, **Institution Name**, **Location**, and **Graduation Date**.
192
+ - Include relevant coursework or projects that align with the job description (optional).
193
 
194
+ **6. Certifications (Optional):**
195
 
196
+ - List certifications relevant to the job description.
197
 
198
+ **7. Additional Sections (Optional):**
199
+
200
+ - Consider including sections like Volunteer Experience, Publications, or Awards if they demonstrate skills and value.
201
+
202
+ **8. ATS Compatibility and Formatting:**
203
+
204
+ - Maintain a simple format with a standard, easy-to-read font (e.g., Arial, Times New Roman).
205
+ - Avoid complex elements like tables or columns that can confuse ATS systems.
206
 
207
+ **9. Final Review:**
208
+
209
+ - Proofread meticulously for any spelling or grammatical errors.
210
+ - Ensure resume aligns with the job description and includes essential keywords.
211
+
212
+ ## Writing an Updated, ATS-Friendly Resume
213
+ **Generated Resume:**
214
+
215
+ Based on the provided job description and resume data, here's an example resume tailored for target role:
216
+
217
+ **[ Name]**
218
+ * [Phone Number] | [Email Address] | [LinkedIn Profile URL (Optional)]
219
+ * [City, State (Optional)]
220
+ **Professional Summary**
221
+ (Here, write concise and compelling 2-3 sentence summary)
222
+ **Skills**
223
+ * (List relevant skills using bullet points, emphasizing keywords from the job description)
224
+ **Professional Experience**
225
+ **[Job Title 1]** | **[Company Name]** | **[Location]** | **[Dates of Employment]**
226
+ * (List bullet points outlining responsibilities and achievements using the job description keywords and quantifiable results)
227
+ **[Job Title 2]** | **[Company Name]** | **[Location]** | **[Dates of Employment]**
228
+ * (List bullet points outlining responsibilities and achievements using the job description keywords and quantifiable results)
229
+ **Education**
230
+ **[Degree Title]** | **[Institution Name]** | **[Location]** | **[Graduation Date]**
231
+ * (Include relevant coursework or projects if applicable)
232
+ **[Optional Sections: Certifications, Volunteer Experience, Publications, Awards]**
233
+ **(Fill out these sections if relevant)**
234
+ Output: Step-by-Step guide then generated new resume
235
  """
236
 
237
  #info contains company name also
 
241
  Resume: {doc}
242
  ### Step-by-Step Guide for the Cover Letter
243
  #### 1. Contact Information and Date
244
+ - Include contact information at the top: Name, Address (optional), Phone Number, Email.
245
  - Add the date of writing the letter.
246
  #### 2. Salutation
247
  - If possible, address the letter to a specific person (e.g., "Dear [Hiring Manager's Name]").
 
251
  - Mention the job title you’re applying for and where you found the job listing.
252
  - Briefly state why you are interested in the role and the company.
253
  #### 4. Body of the Letter (1-2 Paragraphs)
254
+ - In the first paragraph, summarize relevant experience and skills, aligning them with key requirements of the job description.
255
+ - In the second paragraph, provide specific examples from past work that demonstrate abilities and successes. Use quantifiable achievements when possible.
256
+ - Explain how skills and experiences make you an ideal fit for the role and how you can contribute to the company.
257
  #### 5. Conclusion
258
+ - Reiterate enthusiasm for the position.
259
+ - Mention any attached documents (like resume or portfolio).
260
+ - State availability for an interview and propose the next steps or indicate intention to follow up.
261
  #### 6. Sign-off
262
+ - Close the letter with a professional sign-off such as "Sincerely" or "Best regards," followed by name.
263
+ - If you’re submitting a printed letter, leave space for handwritten signature above typed name.
264
  ### Final Tips:
265
  - Keep the cover letter concise, ideally not exceeding one page.
266
  - Tailor the letter to the job and company – avoid using a generic template.
267
  - Proofread carefully to avoid any spelling or grammatical errors.
268
+ - Use a professional tone, but allow personality to shine through.
269
  ## Example:
270
  - Provide an cover letter also as example
271
  """
 
276
  Resume: {doc}
277
  ### Step-by-Step Guide for LinkedIn Update
278
  #### 1. LinkedIn Headline
279
+ - Create a headline combining current role or expertise, key skills from resume, and aspects of the job you are targeting.
280
  - Example format: “[Current Role/Expertise] with [Key Skills] | Aspiring [Target Job Title]”
281
  #### 2. Profile Photo and Background Image
282
+ - Choose a professional profile picture and a background image that reflects professional brand.
283
  #### 3. About Section
284
+ - Write a summary that includes professional background, achievements, skills, and career aspirations, tailored to align with resume and the job description.
285
  #### 4. Experience Section
286
+ - Update to mirror resume, highlighting roles, responsibilities, and achievements relevant to career goals.
287
  - Use language and keywords from the job description to Improve alignment.
288
  #### 5. Education
289
+ - Ensure educational background matches resume, including relevant courses and certifications.
290
  #### 6. Skills & Endorsements
291
+ - Add and prioritize skills from resume and the job description, focusing on those most relevant to career goals.
292
  #### 7. Recommendations
293
+ - Request recommendations that reinforce skills and experiences, particularly those aligning with target job.
294
  #### 8. Licenses and Certifications
295
+ - Include any relevant certifications, aligning with both resume and job description.
296
  #### 9. Volunteer Experience
297
+ - Add volunteer work if it supports professional image and career objectives.
298
  #### 10. Accomplishments
299
  - Include any relevant publications, patents, projects, honors, and awards.
300
  #### 11. Customized URL
301
+ - Customize LinkedIn URL for a professional touch.
302
  ### Final Steps:
303
  - Review for consistency in language and tone.
304
  - Proofread to ensure there are no errors.
305
+ - Update profile regularly to reflect current professional status and aspirations.
306
  ### Conclusion:
307
+ - LinkedIn profile should be a dynamic representation of professional life, showcasing both experience and personality, and aligned with career goals and targeted job opportunities.
308
  """
309
 
310
  interview = """
 
315
  ### Part 1: Tailored Interview Questions Based on Job Description
316
  #### 1. Role-Specific Technical Questions
317
  - Generate questions that assess skills and experiences directly related to the key requirements in the job description.
318
+ - Example: " resume mentions experience in [specific skill from resume]; can you discuss how you've applied this skill in a past project?"
319
  #### 2. Behavioral Questions Related to Job Role
320
  - Formulate questions based on scenarios or challenges outlined in the job description.
321
  - Example: "The job description emphasizes teamwork. Can you share an experience where you successfully collaborated on a challenging project?"
 
324
  - Example: "Given a scenario of [specific challenge in the job description], how would you approach solving it?"
325
  #### 4. Questions Assessing Cultural and Company Fit
326
  - Based on the company culture hinted at in the job description, prepare questions to evaluate the candidate's fit.
327
+ - Example: "Our company values [specific value from job description]. Can you provide an example of how you've embodied this value in professional life?"
328
  ### Part 2: Questions for the Candidate to Ask the Interviewer
329
  #### 1. Clarifications on Role Responsibilities
330
  - Suggest questions that seek deeper insights into the daily responsibilities and expectations.
features/__pycache__/analyzer.cpython-39.pyc CHANGED
Binary files a/features/__pycache__/analyzer.cpython-39.pyc and b/features/__pycache__/analyzer.cpython-39.pyc differ
 
features/__pycache__/ats.cpython-39.pyc CHANGED
Binary files a/features/__pycache__/ats.cpython-39.pyc and b/features/__pycache__/ats.cpython-39.pyc differ
 
features/__pycache__/newresume.cpython-39.pyc CHANGED
Binary files a/features/__pycache__/newresume.cpython-39.pyc and b/features/__pycache__/newresume.cpython-39.pyc differ
 
features/analyzer.py CHANGED
@@ -7,7 +7,7 @@ import streamlit as st
7
  def run_analyzer(llm, doc='', jd='', analysis=False):
8
  load_dotenv()
9
  analyzer = Functions()
10
-
11
  if analysis:
12
  message = "Suggesting Keywords to add in your Resume."
13
  template = keyword_analysis
 
7
  def run_analyzer(llm, doc='', jd='', analysis=False):
8
  load_dotenv()
9
  analyzer = Functions()
10
+ keyword = ''
11
  if analysis:
12
  message = "Suggesting Keywords to add in your Resume."
13
  template = keyword_analysis
features/ats.py CHANGED
@@ -15,15 +15,17 @@ def run_ats(llm, doc='', jd='', manual=False):
15
  with st.spinner("Calculating Score..."):
16
  if manual:
17
  response, keywords = ats.calculate_ats_score(resume_data=doc, job_description=jd)
18
- st.subheader("The Keywords Missing:")
19
- for i, keyword in enumerate(keywords):
20
- st.caption(f"{i+1}. {keyword}")
21
  else:
22
  response = ats.get_gemini_response(llm=llm, template=ats_score, doc=doc, input_text=jd)
23
  extra_response = ats.get_gemini_response(llm=llm, template=ats_resume, doc=doc, input_text=jd)
24
 
25
  st.subheader("The ATS Score is")
26
  st.write(response)
 
 
 
 
27
  st.write(extra_response)
28
  else:
29
  st.write("Please upload the resume")
 
15
  with st.spinner("Calculating Score..."):
16
  if manual:
17
  response, keywords = ats.calculate_ats_score(resume_data=doc, job_description=jd)
18
+
 
 
19
  else:
20
  response = ats.get_gemini_response(llm=llm, template=ats_score, doc=doc, input_text=jd)
21
  extra_response = ats.get_gemini_response(llm=llm, template=ats_resume, doc=doc, input_text=jd)
22
 
23
  st.subheader("The ATS Score is")
24
  st.write(response)
25
+ if manual:
26
+ st.subheader("The Keywords Missing:")
27
+ for i, keyword in enumerate(keywords):
28
+ st.caption(f"{i+1}. {keyword}")
29
  st.write(extra_response)
30
  else:
31
  st.write("Please upload the resume")
features/newresume.py CHANGED
@@ -8,14 +8,14 @@ from components.prompts import resume_update
8
  def run_newresume(llm,doc='',jd=''):
9
  load_dotenv()
10
  newresume = Functions()
11
- st.write("Generate new resume in LateX Format.")
12
  submit = st.button("Generate Resume")
13
 
14
  if submit:
15
  if doc is not None:
16
  with st.spinner("Generating..."):
17
  response=newresume.get_gemini_response(llm=llm,template=resume_update,doc=doc,input_text=jd)
18
- st.subheader("Resume In LateX Format")
19
  st.write(response)
20
  else:
21
  st.write("Please upload the resume")
 
8
  def run_newresume(llm,doc='',jd=''):
9
  load_dotenv()
10
  newresume = Functions()
11
+ st.write("Generate New Resume.")
12
  submit = st.button("Generate Resume")
13
 
14
  if submit:
15
  if doc is not None:
16
  with st.spinner("Generating..."):
17
  response=newresume.get_gemini_response(llm=llm,template=resume_update,doc=doc,input_text=jd)
18
+ st.subheader("Generated Resume")
19
  st.write(response)
20
  else:
21
  st.write("Please upload the resume")