Spaces:
Sleeping
Sleeping
Update pie colours
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def get_score(resume_path, job_description_path):
|
|
103 |
st.markdown('<p style="color: green; font-weight: bold;">Excellent! You can submit your CV.</p>', unsafe_allow_html=True)
|
104 |
pie_colors = ['#4CAF50', '#E5E5E5']
|
105 |
|
106 |
-
return similarity_score
|
107 |
|
108 |
def display_score(similarity):
|
109 |
# Display Score as a Pie Chart
|
@@ -130,8 +130,9 @@ if uploaded_resume and uploaded_job_description:
|
|
130 |
|
131 |
if st.button("Resume-JD Matching"):
|
132 |
with st.spinner("Computing Match"):
|
133 |
-
|
134 |
-
display_score(
|
|
|
135 |
|
136 |
#Autoscroll
|
137 |
st.markdown("""
|
@@ -158,8 +159,8 @@ if uploaded_resume and uploaded_job_description:
|
|
158 |
""", unsafe_allow_html=True)
|
159 |
|
160 |
with st.spinner("Computing Match"):
|
161 |
-
|
162 |
-
display_score(
|
163 |
|
164 |
if generated_resume is not None:
|
165 |
from io import BytesIO
|
|
|
103 |
st.markdown('<p style="color: green; font-weight: bold;">Excellent! You can submit your CV.</p>', unsafe_allow_html=True)
|
104 |
pie_colors = ['#4CAF50', '#E5E5E5']
|
105 |
|
106 |
+
return similarity_score, pie_colors
|
107 |
|
108 |
def display_score(similarity):
|
109 |
# Display Score as a Pie Chart
|
|
|
130 |
|
131 |
if st.button("Resume-JD Matching"):
|
132 |
with st.spinner("Computing Match"):
|
133 |
+
similarity_score, pie_colors = get_score(resume_path, job_description_path)
|
134 |
+
display_score(similarity_score, pie_colors)
|
135 |
+
|
136 |
|
137 |
#Autoscroll
|
138 |
st.markdown("""
|
|
|
159 |
""", unsafe_allow_html=True)
|
160 |
|
161 |
with st.spinner("Computing Match"):
|
162 |
+
similarity_score, pie_colors = get_score(resume_path, job_description_path)
|
163 |
+
display_score(similarity_score, pie_colors)
|
164 |
|
165 |
if generated_resume is not None:
|
166 |
from io import BytesIO
|