pktpaulie commited on
Commit
d8f8183
·
verified ·
1 Parent(s): f71d1d8
Files changed (1) hide show
  1. app.py +14 -15
app.py CHANGED
@@ -59,8 +59,7 @@ st.markdown("""
59
  background-color: #1A1A1A;
60
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
61
  transform: translateY(-2px);
62
-
63
-
64
 
65
  }
66
  /* From Uiverse.io by e-coders */
@@ -69,10 +68,10 @@ st.markdown("""
69
  # pointer-events: none;
70
  # }
71
 
72
- # .stButton>:active {
73
- # box-shadow: none;
74
- # transform: translateY(0);
75
- # }
76
  </style>
77
  """, unsafe_allow_html=True)
78
 
@@ -106,7 +105,7 @@ if uploaded_resume and uploaded_job_description:
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>')
@@ -143,6 +142,13 @@ if uploaded_resume and uploaded_job_description:
143
  st.subheader("Generated Tailored Resume:")
144
  # st.write(generated_resume)
145
 
 
 
 
 
 
 
 
146
  if generated_resume is not None:
147
  from io import BytesIO
148
  from docx import Document
@@ -160,14 +166,7 @@ if uploaded_resume and uploaded_job_description:
160
  file_name="tailored_resume.docx",
161
  mime="application/vnd.openxmlformats-officedocument.wordprocessingml.document"
162
  )
163
-
164
-
165
- #Autoscroll
166
- st.markdown("""
167
- <script>
168
- window.scrollTo(0, document.body.scrollHeight);
169
- </script>
170
- """, unsafe_allow_html=True)
171
 
172
  else:
173
  st.warning("Please upload both the resume and job description files.")
 
59
  background-color: #1A1A1A;
60
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
61
  transform: translateY(-2px);
62
+ border: none !important;
 
63
 
64
  }
65
  /* From Uiverse.io by e-coders */
 
68
  # pointer-events: none;
69
  # }
70
 
71
+ .stButton>:active {
72
+ box-shadow: none;
73
+ transform: translateY(0);
74
+ }
75
  </style>
76
  """, unsafe_allow_html=True)
77
 
 
105
 
106
  # Display messages based on score range
107
  if similarity_score < 50:
108
+ st.markdown('<p style="color: red; font-weight: bold;">Low chance, skills gap identified!</p>', unsafe_allow_html=True)
109
  pie_colors = ['#FF4B4B', '#E5E5E5']
110
  elif 50 <= similarity_score < 70:
111
  st.markdown('<p style="color: red; font-weight: bold;">Good chance but you can improve further!</p>')
 
142
  st.subheader("Generated Tailored Resume:")
143
  # st.write(generated_resume)
144
 
145
+ #Autoscroll
146
+ st.markdown("""
147
+ <script>
148
+ window.scrollTo(0, document.body.scrollHeight);
149
+ </script>
150
+ """, unsafe_allow_html=True)
151
+
152
  if generated_resume is not None:
153
  from io import BytesIO
154
  from docx import Document
 
166
  file_name="tailored_resume.docx",
167
  mime="application/vnd.openxmlformats-officedocument.wordprocessingml.document"
168
  )
169
+
 
 
 
 
 
 
 
170
 
171
  else:
172
  st.warning("Please upload both the resume and job description files.")