Spaces:
Sleeping
Sleeping
Anushkabhat9
commited on
Upload app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
import streamlit as st
|
3 |
import os
|
4 |
import pandas as pd
|
|
|
5 |
from resume_generation_gemini_pro import Gemini_pro_main
|
6 |
from similarity_score_refined import similarity_main
|
7 |
|
@@ -61,10 +62,14 @@ if uploaded_resume and uploaded_job_description:
|
|
61 |
if isinstance(similarity_score, str) and '%' in similarity_score:
|
62 |
similarity_score = float(similarity_score.replace('%', ''))
|
63 |
|
64 |
-
# Display Score
|
65 |
st.markdown(f"### Similarity Score: {int(similarity_score)}%")
|
66 |
-
|
67 |
-
|
|
|
|
|
|
|
|
|
68 |
|
69 |
# Generate Tailored Resume Section
|
70 |
st.markdown("---")
|
|
|
2 |
import streamlit as st
|
3 |
import os
|
4 |
import pandas as pd
|
5 |
+
import matplotlib.pyplot as plt
|
6 |
from resume_generation_gemini_pro import Gemini_pro_main
|
7 |
from similarity_score_refined import similarity_main
|
8 |
|
|
|
62 |
if isinstance(similarity_score, str) and '%' in similarity_score:
|
63 |
similarity_score = float(similarity_score.replace('%', ''))
|
64 |
|
65 |
+
# Display Score as a Pie Chart
|
66 |
st.markdown(f"### Similarity Score: {int(similarity_score)}%")
|
67 |
+
|
68 |
+
# Pie chart to show similarity
|
69 |
+
fig, ax = plt.subplots()
|
70 |
+
ax.pie([similarity_score, 100 - similarity_score], labels=['Match', 'Difference'], autopct='%1.1f%%', startangle=140, colors=['#4B7BE5', '#E5E5E5'])
|
71 |
+
ax.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle.
|
72 |
+
st.pyplot(fig)
|
73 |
|
74 |
# Generate Tailored Resume Section
|
75 |
st.markdown("---")
|