honeyangelhp commited on
Commit
04abca9
·
verified ·
1 Parent(s): 46e616f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -20
app.py CHANGED
@@ -86,27 +86,12 @@ if st.button("Submit"):
86
  st.subheader("ATS Score Distribution")
87
  names_with_ranks = [f"Rank {r['Rank']}: {r['name']}" for r in sorted_resumes]
88
  scores = [r["ATS Score"]*100 for r in sorted_resumes]
89
-
90
- # Apply a clean Matplotlib style
91
- plt.style.use("seaborn-whitegrid")
92
  plt.figure(figsize=(8, 5))
93
-
94
- # Customize the plot
95
- fig, ax = plt.subplots(figsize=(8, 5), facecolor='none') # Set facecolor to 'none' for transparency
96
- ax.bar(names_with_ranks, scores, color="#4CAF50")
97
- ax.set_title("ATS Scores by Resume (Ranked)", fontsize=14, color="#333")
98
- ax.set_ylabel("ATS Score (%)", fontsize=12, color="#333")
99
- ax.set_xticks(range(len(names_with_ranks)))
100
- ax.set_xticklabels(names_with_ranks, rotation=45, ha="right", fontsize=10, color="#333")
101
- ax.set_facecolor('none') # Remove background color from the axes
102
-
103
- # Clean the spines and grid for a minimalist look
104
- for spine in ax.spines.values():
105
- spine.set_visible(False)
106
- ax.grid(axis='y', linestyle='--', alpha=0.6) # Add a subtle grid on the y-axis
107
- ax.grid(axis='x', visible=False)
108
-
109
- st.pyplot(fig)
110
 
111
  else:
112
  st.warning("Please upload resumes and provide a job description before submitting.")
 
86
  st.subheader("ATS Score Distribution")
87
  names_with_ranks = [f"Rank {r['Rank']}: {r['name']}" for r in sorted_resumes]
88
  scores = [r["ATS Score"]*100 for r in sorted_resumes]
 
 
 
89
  plt.figure(figsize=(8, 5))
90
+ plt.bar(names_with_ranks, scores)
91
+ plt.title("ATS Scores by Resume (Ranked)")
92
+ plt.ylabel("ATS Score (%)")
93
+ plt.xticks(rotation=45, ha="right")
94
+ st.pyplot(plt)
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
  else:
97
  st.warning("Please upload resumes and provide a job description before submitting.")