pktpaulie commited on
Commit
b94c7a8
·
verified ·
1 Parent(s): 1c5cec1

Update button css

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -54,12 +54,13 @@ st.markdown("""
54
  will-change: transform;
55
  }
56
  .stButton>button:hover {
57
- # background-color: #3A6FD8;
58
- # color: white;
59
  color: #fff;
60
  background-color: #1A1A1A;
61
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
62
  transform: translateY(-2px);
 
 
 
63
 
64
  }
65
  /* From Uiverse.io by e-coders */
@@ -105,13 +106,13 @@ if uploaded_resume and uploaded_job_description:
105
 
106
  # Display messages based on score range
107
  if similarity_score < 50:
108
- st.subheader(colored("Low chance, need to modify your CV!", "red", attrs=["bold"]))
109
  pie_colors = ['#FF4B4B', '#E5E5E5']
110
  elif 50 <= similarity_score < 70:
111
- st.subheader(colored("Good chance but you can improve further!", "yellow", attrs=["bold"]))
112
  pie_colors = ['#FFC107', '#E5E5E5']
113
  else:
114
- st.subheader(colored("Excellent! You can submit your CV.", "green", attrs=["bold"]))
115
  pie_colors = ['#4CAF50', '#E5E5E5']
116
 
117
  # Display Score as a Pie Chart
 
54
  will-change: transform;
55
  }
56
  .stButton>button:hover {
 
 
57
  color: #fff;
58
  background-color: #1A1A1A;
59
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
60
  transform: translateY(-2px);
61
+ # background-color: #3A6FD8;
62
+ # color: white;
63
+
64
 
65
  }
66
  /* From Uiverse.io by e-coders */
 
106
 
107
  # Display messages based on score range
108
  if similarity_score < 50:
109
+ st.markdown('<p style="color: red; font-weight: bold;">Low chance, need to modify your CV!</p>', unsafe_allow_html=True)
110
  pie_colors = ['#FF4B4B', '#E5E5E5']
111
  elif 50 <= similarity_score < 70:
112
+ st.markdown('<p style="color: red; font-weight: bold;">Good chance but you can improve further!</p>')
113
  pie_colors = ['#FFC107', '#E5E5E5']
114
  else:
115
+ st.markdown('<p style="color: green; font-weight: bold;">Excellent! You can submit your CV.</p>', unsafe_allow_html=True)
116
  pie_colors = ['#4CAF50', '#E5E5E5']
117
 
118
  # Display Score as a Pie Chart