Spaces:
Sleeping
Sleeping
TejaCherukuri
commited on
Commit
·
83fdfd2
1
Parent(s):
b3bba2b
changes to ui
Browse files
app.py
CHANGED
|
@@ -7,22 +7,6 @@ def main():
|
|
| 7 |
# Set the page layout to wide mode
|
| 8 |
st.set_page_config(page_title="ProSpectAI: The Smart Way to Reach Out to Recruiters", layout="wide")
|
| 9 |
|
| 10 |
-
# # Unified CSS for styling both file uploader and radio button labels
|
| 11 |
-
# st.markdown(
|
| 12 |
-
# """
|
| 13 |
-
# <style>
|
| 14 |
-
# /* Increase font size, make bold, and change color for labels */
|
| 15 |
-
# div[data-testid="stFileUploader"] label,
|
| 16 |
-
# div[data-testid="stRadio"] label {
|
| 17 |
-
# font-size: 20px !important;
|
| 18 |
-
# font-weight: bold !important;
|
| 19 |
-
# color: #1E90FF !important; /* DodgerBlue */
|
| 20 |
-
# }
|
| 21 |
-
# </style>
|
| 22 |
-
# """,
|
| 23 |
-
# unsafe_allow_html=True
|
| 24 |
-
# )
|
| 25 |
-
|
| 26 |
# Custom CSS to reduce the subheader size
|
| 27 |
st.markdown(
|
| 28 |
"""
|
|
@@ -45,40 +29,14 @@ def main():
|
|
| 45 |
st.subheader("Upload Your Resume & Job Information")
|
| 46 |
uploaded_file = st.file_uploader("Upload a PDF Resume", type=["pdf"])
|
| 47 |
|
| 48 |
-
# # Job Input Option (Radio Buttons for Job URL or Description)
|
| 49 |
-
# input_option = st.radio(
|
| 50 |
-
# "How would you like to provide the job information?",
|
| 51 |
-
# ("Job URL", "Job Description")
|
| 52 |
-
# )
|
| 53 |
-
|
| 54 |
-
# job_url = None
|
| 55 |
-
# job_description = None
|
| 56 |
-
|
| 57 |
-
# # Show corresponding input field based on the selection
|
| 58 |
-
# if input_option == "Job URL":
|
| 59 |
-
# job_url = st.text_input(
|
| 60 |
-
# "Enter the Job URL",
|
| 61 |
-
# placeholder="https://amazon.jobs/en/jobs/2831138/software-development-engineer-2025-ai-ml"
|
| 62 |
-
# )
|
| 63 |
-
|
| 64 |
-
# # Display the alert with color
|
| 65 |
-
# with st.expander("🔔 **Alert!** Job URL Instructions", expanded=True):
|
| 66 |
-
# st.markdown(
|
| 67 |
-
# """
|
| 68 |
-
# <p style="color:red;">If using a LinkedIn job URL (Easy Apply), paste the job description instead.</p>
|
| 69 |
-
# """, unsafe_allow_html=True)
|
| 70 |
-
|
| 71 |
-
# elif input_option == "Job Description":
|
| 72 |
-
# job_description = st.text_area("Enter the Job Description", height=200)
|
| 73 |
-
|
| 74 |
# Job Input Option (Radio Buttons Side by Side)
|
| 75 |
col1, col2 = st.columns([1, 1]) # Equal width columns
|
| 76 |
|
| 77 |
with col1:
|
| 78 |
job_input_option = st.radio("How would you like to provide the job information?", ["Job URL", "Job Description"], horizontal=True)
|
| 79 |
|
| 80 |
-
job_description = None
|
| 81 |
-
job_url = None
|
| 82 |
|
| 83 |
# Dynamic Input Fields Based on Selection
|
| 84 |
if job_input_option == "Job URL":
|
|
|
|
| 7 |
# Set the page layout to wide mode
|
| 8 |
st.set_page_config(page_title="ProSpectAI: The Smart Way to Reach Out to Recruiters", layout="wide")
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# Custom CSS to reduce the subheader size
|
| 11 |
st.markdown(
|
| 12 |
"""
|
|
|
|
| 29 |
st.subheader("Upload Your Resume & Job Information")
|
| 30 |
uploaded_file = st.file_uploader("Upload a PDF Resume", type=["pdf"])
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
# Job Input Option (Radio Buttons Side by Side)
|
| 33 |
col1, col2 = st.columns([1, 1]) # Equal width columns
|
| 34 |
|
| 35 |
with col1:
|
| 36 |
job_input_option = st.radio("How would you like to provide the job information?", ["Job URL", "Job Description"], horizontal=True)
|
| 37 |
|
| 38 |
+
job_description = None
|
| 39 |
+
job_url = None
|
| 40 |
|
| 41 |
# Dynamic Input Fields Based on Selection
|
| 42 |
if job_input_option == "Job URL":
|