Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,51 +1,71 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
# Title of the App
|
| 4 |
-
st.title("Smart Career Advisor")
|
| 5 |
|
| 6 |
st.write("Fill in the details below and get personalized career advice!")
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
education = st.selectbox(
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
future_goals = st.text_area("What are your future goals?")
|
| 12 |
work_style = st.selectbox("Preferred work style", ["Remote", "On-site", "Hybrid"])
|
| 13 |
-
|
| 14 |
-
# Additional details block
|
| 15 |
extra_details = st.text_area("Any additional details you'd like to share?")
|
| 16 |
|
| 17 |
-
#
|
| 18 |
if st.button("Get Career Advice"):
|
| 19 |
-
st.subheader("Suggested Career Paths:")
|
| 20 |
|
| 21 |
-
if "
|
| 22 |
st.write("- Chemist")
|
| 23 |
st.write("- Research Scientist")
|
| 24 |
st.write("- Lab Technician")
|
| 25 |
st.write("- Pharmaceutical Analyst")
|
| 26 |
-
|
|
|
|
| 27 |
st.write("- Content Writer")
|
| 28 |
st.write("- Copywriter")
|
| 29 |
st.write("- Blogger")
|
| 30 |
st.write("- Technical Writer")
|
| 31 |
-
|
|
|
|
| 32 |
st.write("- Data Analyst")
|
| 33 |
st.write("- Data Scientist")
|
| 34 |
st.write("- Business Intelligence Analyst")
|
| 35 |
st.write("- Machine Learning Engineer")
|
| 36 |
|
| 37 |
-
st.subheader("Learning Resources:")
|
| 38 |
-
if "
|
| 39 |
-
st.write("- Khan Academy Chemistry")
|
| 40 |
st.write("- Coursera: Chemistry Courses")
|
| 41 |
-
if "
|
| 42 |
st.write("- HubSpot Content Marketing Certification")
|
| 43 |
st.write("- Coursera: Writing in the Sciences")
|
| 44 |
-
if "
|
| 45 |
-
st.write("- DataCamp Data Analyst Track")
|
| 46 |
st.write("- Coursera: Data Science Specialization")
|
| 47 |
|
| 48 |
-
st.subheader("Other Suggestions:")
|
| 49 |
st.write("- Build a portfolio relevant to your field.")
|
| 50 |
st.write("- Network with professionals on LinkedIn.")
|
| 51 |
st.write("- Gain experience through internships or projects.")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
# Title of the App
|
| 4 |
+
st.title("🎓 Smart Career Advisor")
|
| 5 |
|
| 6 |
st.write("Fill in the details below and get personalized career advice!")
|
| 7 |
|
| 8 |
+
# Step 1: Education Level
|
| 9 |
+
education = st.selectbox(
|
| 10 |
+
"Select your education level",
|
| 11 |
+
["High School", "Bachelor's", "Master's", "PhD"]
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
# Step 2: Education Field (depends on education level)
|
| 15 |
+
fields = {
|
| 16 |
+
"High School": ["Science", "Arts", "Commerce", "Other"],
|
| 17 |
+
"Bachelor's": ["Computer Science", "Chemistry", "Literature", "Economics", "Other"],
|
| 18 |
+
"Master's": ["Data Science", "Chemistry", "English Literature", "Business", "Other"],
|
| 19 |
+
"PhD": ["Research - Chemistry", "Research - Data Science", "Philosophy", "Other"]
|
| 20 |
+
}
|
| 21 |
+
education_field = st.selectbox(
|
| 22 |
+
"Select your education field",
|
| 23 |
+
fields[education]
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
# Step 3: Other inputs
|
| 27 |
+
interests = st.multiselect(
|
| 28 |
+
"Select your main interests",
|
| 29 |
+
["Chemistry", "Content Writing", "Data Analysis", "Data Science", "Teaching", "Business", "Research"]
|
| 30 |
+
)
|
| 31 |
future_goals = st.text_area("What are your future goals?")
|
| 32 |
work_style = st.selectbox("Preferred work style", ["Remote", "On-site", "Hybrid"])
|
|
|
|
|
|
|
| 33 |
extra_details = st.text_area("Any additional details you'd like to share?")
|
| 34 |
|
| 35 |
+
# Step 4: Generate advice
|
| 36 |
if st.button("Get Career Advice"):
|
| 37 |
+
st.subheader("🎯 Suggested Career Paths:")
|
| 38 |
|
| 39 |
+
if "Chemistry" in interests or "Chemistry" in education_field:
|
| 40 |
st.write("- Chemist")
|
| 41 |
st.write("- Research Scientist")
|
| 42 |
st.write("- Lab Technician")
|
| 43 |
st.write("- Pharmaceutical Analyst")
|
| 44 |
+
|
| 45 |
+
if "Content Writing" in interests or "Literature" in education_field:
|
| 46 |
st.write("- Content Writer")
|
| 47 |
st.write("- Copywriter")
|
| 48 |
st.write("- Blogger")
|
| 49 |
st.write("- Technical Writer")
|
| 50 |
+
|
| 51 |
+
if "Data Analysis" in interests or "Data Science" in education_field:
|
| 52 |
st.write("- Data Analyst")
|
| 53 |
st.write("- Data Scientist")
|
| 54 |
st.write("- Business Intelligence Analyst")
|
| 55 |
st.write("- Machine Learning Engineer")
|
| 56 |
|
| 57 |
+
st.subheader("📚 Learning Resources:")
|
| 58 |
+
if "Chemistry" in interests or "Chemistry" in education_field:
|
| 59 |
+
st.write("- Khan Academy: Chemistry")
|
| 60 |
st.write("- Coursera: Chemistry Courses")
|
| 61 |
+
if "Content Writing" in interests or "Literature" in education_field:
|
| 62 |
st.write("- HubSpot Content Marketing Certification")
|
| 63 |
st.write("- Coursera: Writing in the Sciences")
|
| 64 |
+
if "Data Analysis" in interests or "Data Science" in education_field:
|
| 65 |
+
st.write("- DataCamp: Data Analyst Track")
|
| 66 |
st.write("- Coursera: Data Science Specialization")
|
| 67 |
|
| 68 |
+
st.subheader("💡 Other Suggestions:")
|
| 69 |
st.write("- Build a portfolio relevant to your field.")
|
| 70 |
st.write("- Network with professionals on LinkedIn.")
|
| 71 |
st.write("- Gain experience through internships or projects.")
|