Spaces:
Sleeping
Sleeping
sancharikadebnath
commited on
Commit
·
1f8a38d
1
Parent(s):
4b52d41
Modified app.py
Browse files- app.py +5 -1
- components/__pycache__/docLoader.cpython-39.pyc +0 -0
- components/__pycache__/functions.cpython-39.pyc +0 -0
- components/docLoader.py +1 -1
- components/functions.py +0 -1
- features/__pycache__/company_recommend.cpython-39.pyc +0 -0
- features/__pycache__/cover_letter.cpython-39.pyc +0 -0
- features/__pycache__/enhance.cpython-39.pyc +0 -0
- features/__pycache__/improve.cpython-39.pyc +0 -0
- features/__pycache__/interview.cpython-39.pyc +0 -0
- features/__pycache__/linkedin.cpython-39.pyc +0 -0
- features/__pycache__/newresume.cpython-39.pyc +0 -0
- features/__pycache__/review.cpython-39.pyc +0 -0
- features/company_recommend.py +1 -1
- features/cover_letter.py +1 -2
- features/enhance.py +1 -1
- features/improve.py +1 -1
- features/interview.py +1 -2
- features/linkedin.py +1 -1
- features/newresume.py +2 -2
- features/review.py +1 -2
app.py
CHANGED
@@ -51,6 +51,10 @@ with jd:
|
|
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 🔮')
|
@@ -114,4 +118,4 @@ if option in option_functions:
|
|
114 |
else:
|
115 |
func(llm, st.session_state['doc_text'], jd)
|
116 |
else:
|
117 |
-
func(llm, st.session_state['doc_text'], jd)
|
|
|
51 |
if text:
|
52 |
with doc:
|
53 |
extracted= st.text_area("Extracted Data From Resume", value=st.session_state['doc_text'])
|
54 |
+
|
55 |
+
role=st.text_input("Role you want to Apply for")
|
56 |
+
st.session_state['role'] = role
|
57 |
+
|
58 |
# Sidebar options
|
59 |
with st.sidebar:
|
60 |
st.title('🔮 Career Enchanter 🔮')
|
|
|
118 |
else:
|
119 |
func(llm, st.session_state['doc_text'], jd)
|
120 |
else:
|
121 |
+
func(llm, st.session_state['doc_text'], jd, role=st.session_state['role'])
|
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/docLoader.py
CHANGED
@@ -9,7 +9,7 @@ class docLoader():
|
|
9 |
|
10 |
def load(self, uploaded_file):
|
11 |
if uploaded_file is not None:
|
12 |
-
st.
|
13 |
|
14 |
file_extension = uploaded_file.name.split(".")[-1]
|
15 |
|
|
|
9 |
|
10 |
def load(self, uploaded_file):
|
11 |
if uploaded_file is not None:
|
12 |
+
st.toast("File uploaded successfully!", icon="✅")
|
13 |
|
14 |
file_extension = uploaded_file.name.split(".")[-1]
|
15 |
|
components/functions.py
CHANGED
@@ -97,6 +97,5 @@ class Functions():
|
|
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 |
|
|
|
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 |
return str(round(similarity_score * 100, 2)), missing_keywords
|
101 |
|
features/__pycache__/company_recommend.cpython-39.pyc
CHANGED
Binary files a/features/__pycache__/company_recommend.cpython-39.pyc and b/features/__pycache__/company_recommend.cpython-39.pyc differ
|
|
features/__pycache__/cover_letter.cpython-39.pyc
CHANGED
Binary files a/features/__pycache__/cover_letter.cpython-39.pyc and b/features/__pycache__/cover_letter.cpython-39.pyc differ
|
|
features/__pycache__/enhance.cpython-39.pyc
CHANGED
Binary files a/features/__pycache__/enhance.cpython-39.pyc and b/features/__pycache__/enhance.cpython-39.pyc differ
|
|
features/__pycache__/improve.cpython-39.pyc
CHANGED
Binary files a/features/__pycache__/improve.cpython-39.pyc and b/features/__pycache__/improve.cpython-39.pyc differ
|
|
features/__pycache__/interview.cpython-39.pyc
CHANGED
Binary files a/features/__pycache__/interview.cpython-39.pyc and b/features/__pycache__/interview.cpython-39.pyc differ
|
|
features/__pycache__/linkedin.cpython-39.pyc
CHANGED
Binary files a/features/__pycache__/linkedin.cpython-39.pyc and b/features/__pycache__/linkedin.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/__pycache__/review.cpython-39.pyc
CHANGED
Binary files a/features/__pycache__/review.cpython-39.pyc and b/features/__pycache__/review.cpython-39.pyc differ
|
|
features/company_recommend.py
CHANGED
@@ -7,7 +7,7 @@ from components.prompts import company_recommendations
|
|
7 |
|
8 |
|
9 |
|
10 |
-
def run_company(llm,doc='',jd=''):
|
11 |
load_dotenv()
|
12 |
company = Functions()
|
13 |
st.write("Suggesting new New Job Oppertunities based your resume")
|
|
|
7 |
|
8 |
|
9 |
|
10 |
+
def run_company(llm,doc='',jd='', role=''):
|
11 |
load_dotenv()
|
12 |
company = Functions()
|
13 |
st.write("Suggesting new New Job Oppertunities based your resume")
|
features/cover_letter.py
CHANGED
@@ -7,11 +7,10 @@ from components.prompts import cover_letter
|
|
7 |
|
8 |
|
9 |
|
10 |
-
def run_letter(llm,doc='',jd=''):
|
11 |
load_dotenv()
|
12 |
letter = Functions()
|
13 |
st.write("Generate a cover letter based on your resume and Provided Job Description.")
|
14 |
-
role=st.text_input("Role you want the cover letter for")
|
15 |
submit = st.button("Generate Cover Letter")
|
16 |
|
17 |
|
|
|
7 |
|
8 |
|
9 |
|
10 |
+
def run_letter(llm,doc='',jd='', role=''):
|
11 |
load_dotenv()
|
12 |
letter = Functions()
|
13 |
st.write("Generate a cover letter based on your resume and Provided Job Description.")
|
|
|
14 |
submit = st.button("Generate Cover Letter")
|
15 |
|
16 |
|
features/enhance.py
CHANGED
@@ -7,7 +7,7 @@ from components.prompts import resume_enhance
|
|
7 |
|
8 |
|
9 |
|
10 |
-
def run_enhance(llm,doc='',jd=''):
|
11 |
load_dotenv()
|
12 |
enhance = Functions()
|
13 |
st.write("Providing bullet points for enhancing the given paragraph.")
|
|
|
7 |
|
8 |
|
9 |
|
10 |
+
def run_enhance(llm,doc='',jd='', role=''):
|
11 |
load_dotenv()
|
12 |
enhance = Functions()
|
13 |
st.write("Providing bullet points for enhancing the given paragraph.")
|
features/improve.py
CHANGED
@@ -7,7 +7,7 @@ from components.prompts import resume_improve
|
|
7 |
|
8 |
|
9 |
|
10 |
-
def run_improve(llm,doc='',jd=''):
|
11 |
load_dotenv()
|
12 |
improve = Functions()
|
13 |
st.write("Suggesting new elements to add to your resume based on the existing content.")
|
|
|
7 |
|
8 |
|
9 |
|
10 |
+
def run_improve(llm,doc='',jd='', role=''):
|
11 |
load_dotenv()
|
12 |
improve = Functions()
|
13 |
st.write("Suggesting new elements to add to your resume based on the existing content.")
|
features/interview.py
CHANGED
@@ -7,11 +7,10 @@ from components.prompts import interview as interview_prompt
|
|
7 |
|
8 |
|
9 |
|
10 |
-
def run_interview(llm,doc='',jd=''):
|
11 |
load_dotenv()
|
12 |
interview = Functions()
|
13 |
st.write("Generate Customized Interview Questions.")
|
14 |
-
role=st.text_input("Role you want to know questions for")
|
15 |
submit = st.button("Generate Interview Questions")
|
16 |
|
17 |
|
|
|
7 |
|
8 |
|
9 |
|
10 |
+
def run_interview(llm,doc='',jd='', role=''):
|
11 |
load_dotenv()
|
12 |
interview = Functions()
|
13 |
st.write("Generate Customized Interview Questions.")
|
|
|
14 |
submit = st.button("Generate Interview Questions")
|
15 |
|
16 |
|
features/linkedin.py
CHANGED
@@ -7,7 +7,7 @@ from components.prompts import linkedin_profile
|
|
7 |
|
8 |
|
9 |
|
10 |
-
def run_linkedin(llm,doc='',jd=''):
|
11 |
load_dotenv()
|
12 |
linkedin = Functions()
|
13 |
st.write("Suggesting Comprehensive LinkedIn Profile.")
|
|
|
7 |
|
8 |
|
9 |
|
10 |
+
def run_linkedin(llm,doc='',jd='', role=''):
|
11 |
load_dotenv()
|
12 |
linkedin = Functions()
|
13 |
st.write("Suggesting Comprehensive LinkedIn Profile.")
|
features/newresume.py
CHANGED
@@ -5,7 +5,7 @@ from components.functions import Functions
|
|
5 |
import streamlit as st
|
6 |
from components.prompts import resume_update
|
7 |
|
8 |
-
def run_newresume(llm,doc='',jd=''):
|
9 |
load_dotenv()
|
10 |
newresume = Functions()
|
11 |
st.write("Generate New Resume.")
|
@@ -14,7 +14,7 @@ def run_newresume(llm,doc='',jd=''):
|
|
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:
|
|
|
5 |
import streamlit as st
|
6 |
from components.prompts import resume_update
|
7 |
|
8 |
+
def run_newresume(llm,doc='',jd='', role=''):
|
9 |
load_dotenv()
|
10 |
newresume = Functions()
|
11 |
st.write("Generate New Resume.")
|
|
|
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 + f"Role: {role}")
|
18 |
st.subheader("Generated Resume")
|
19 |
st.write(response)
|
20 |
else:
|
features/review.py
CHANGED
@@ -5,11 +5,10 @@ from components.functions import Functions
|
|
5 |
import streamlit as st
|
6 |
from components.prompts import resume_review
|
7 |
|
8 |
-
def run_review(llm,doc='',jd=''):
|
9 |
load_dotenv()
|
10 |
review = Functions()
|
11 |
st.write("Get a review on how well your Resume is")
|
12 |
-
role=st.text_input("Role you want to Review for")
|
13 |
submit = st.button("Tell Me About the Resume")
|
14 |
|
15 |
if submit:
|
|
|
5 |
import streamlit as st
|
6 |
from components.prompts import resume_review
|
7 |
|
8 |
+
def run_review(llm,doc='',jd='', role=''):
|
9 |
load_dotenv()
|
10 |
review = Functions()
|
11 |
st.write("Get a review on how well your Resume is")
|
|
|
12 |
submit = st.button("Tell Me About the Resume")
|
13 |
|
14 |
if submit:
|