Update app.py
Browse files
app.py
CHANGED
@@ -230,7 +230,7 @@ if page == "Home":
|
|
230 |
The Digital Skills and Employment Analytics Platform (DSEAP) is an AI-driven tool designed to enhance
|
231 |
the evaluation and improvement of digital empowerment programs in Kenya. Our platform provides comprehensive
|
232 |
insights into the demand for digital skills, the effectiveness of existing programs, and the barriers faced
|
233 |
-
by youth in accessing digital opportunities.
|
234 |
""")
|
235 |
st.markdown('</div>', unsafe_allow_html=True)
|
236 |
with col2:
|
@@ -264,7 +264,7 @@ elif page == "Skills Analysis":
|
|
264 |
skills = st.multiselect("Select skills to analyze:",
|
265 |
["Data Analysis", "Web Development", "Digital Marketing", "Cybersecurity", "Cloud Computing", "AI/Machine Learning", "Mobile App Development", "UI/UX Design"])
|
266 |
regions = st.multiselect("Select regions:",
|
267 |
-
["Nairobi", "Mombasa", "Kisumu", "Nakuru", "Eldoret", "Thika", "Malindi", "Kitale"])
|
268 |
time_period = st.selectbox("Select time period:", ["Last 3 months", "Last 6 months", "Last year"])
|
269 |
with col2:
|
270 |
st_lottie(lottie_skills, height=200, key="skills")
|
@@ -310,7 +310,7 @@ elif page == "Program Evaluation":
|
|
310 |
st.subheader("Digital Empowerment Program Evaluation")
|
311 |
|
312 |
programs = st.multiselect("Select programs to evaluate:",
|
313 |
-
["Ajira Digital", "
|
314 |
metrics = st.multiselect("Select evaluation metrics:",
|
315 |
["Employment Rate", "Income Increase", "Skill Proficiency", "Program Completion Rate", "Job Satisfaction", "Career Advancement"])
|
316 |
|
@@ -373,7 +373,7 @@ elif page == "Barrier Identification":
|
|
373 |
st.plotly_chart(fig)
|
374 |
|
375 |
# AI Insights
|
376 |
-
ai_prompt = f"Analyze the barriers to digital skills acquisition in Kenya, focusing on {', '.join(selected_barriers)}. Provide a comprehensive breakdown of each barrier, its impact, and potential solutions."
|
377 |
ai_insights = call_ai_model(ai_prompt)
|
378 |
st.markdown("### AI-Generated Barrier Analysis")
|
379 |
st.write(ai_insights)
|
@@ -418,14 +418,14 @@ elif page == "Recommendations":
|
|
418 |
["Basic Computer Use", "Office Software", "Web Browsing", "Social Media",
|
419 |
"Programming", "Data Analysis", "Graphic Design", "Digital Marketing"])
|
420 |
career_goal = st.text_input("Career Goal")
|
421 |
-
location = st.selectbox("Current Location", ["Nairobi", "Mombasa", "Kisumu", "Nakuru", "Eldoret", "
|
422 |
|
423 |
if st.button("Get Recommendations"):
|
424 |
with st.spinner("Generating personalized recommendations..."):
|
425 |
# AI-generated recommendations
|
426 |
ai_prompt = f"""Generate personalized digital skills recommendations for a {age}-year-old with {education} education,
|
427 |
skills in {', '.join(current_skills)}, located in {location}, aiming for a career in {career_goal}.
|
428 |
-
Provide a detailed learning path, skill priorities, job market insights, and potential challenges to overcome."""
|
429 |
recommendations = call_ai_model(ai_prompt)
|
430 |
|
431 |
st.markdown("### Your Personalized Digital Skills Roadmap")
|
|
|
230 |
The Digital Skills and Employment Analytics Platform (DSEAP) is an AI-driven tool designed to enhance
|
231 |
the evaluation and improvement of digital empowerment programs in Kenya. Our platform provides comprehensive
|
232 |
insights into the demand for digital skills, the effectiveness of existing programs, and the barriers faced
|
233 |
+
by youth in accessing digital opportunities. **A study In cmputing and prgramming**
|
234 |
""")
|
235 |
st.markdown('</div>', unsafe_allow_html=True)
|
236 |
with col2:
|
|
|
264 |
skills = st.multiselect("Select skills to analyze:",
|
265 |
["Data Analysis", "Web Development", "Digital Marketing", "Cybersecurity", "Cloud Computing", "AI/Machine Learning", "Mobile App Development", "UI/UX Design"])
|
266 |
regions = st.multiselect("Select regions:",
|
267 |
+
["Nairobi", "Mombasa", "Kisumu", "Nakuru", "Eldoret", "Thika", "Malindi", "Kitale", "Kisii", "Nyamira", "Western"])
|
268 |
time_period = st.selectbox("Select time period:", ["Last 3 months", "Last 6 months", "Last year"])
|
269 |
with col2:
|
270 |
st_lottie(lottie_skills, height=200, key="skills")
|
|
|
310 |
st.subheader("Digital Empowerment Program Evaluation")
|
311 |
|
312 |
programs = st.multiselect("Select programs to evaluate:",
|
313 |
+
["Ajira Digital", "Remotasks", "Upwork", "Fiverr", "Andela", "Emobiles", "snaphub", "iBizAfrica"])
|
314 |
metrics = st.multiselect("Select evaluation metrics:",
|
315 |
["Employment Rate", "Income Increase", "Skill Proficiency", "Program Completion Rate", "Job Satisfaction", "Career Advancement"])
|
316 |
|
|
|
373 |
st.plotly_chart(fig)
|
374 |
|
375 |
# AI Insights
|
376 |
+
ai_prompt = f"with a precise answer, not so long and well structured for easy understanding. Analyze the barriers to digital skills acquisition in Kenya, focusing on {', '.join(selected_barriers)}. Provide a comprehensive breakdown of each barrier, its impact, and potential solutions."
|
377 |
ai_insights = call_ai_model(ai_prompt)
|
378 |
st.markdown("### AI-Generated Barrier Analysis")
|
379 |
st.write(ai_insights)
|
|
|
418 |
["Basic Computer Use", "Office Software", "Web Browsing", "Social Media",
|
419 |
"Programming", "Data Analysis", "Graphic Design", "Digital Marketing"])
|
420 |
career_goal = st.text_input("Career Goal")
|
421 |
+
location = st.selectbox("Current Location", ["Nairobi", "Mombasa", "Kisumu", "Nakuru", "Eldoret", "Kisii", "Nyamira"])
|
422 |
|
423 |
if st.button("Get Recommendations"):
|
424 |
with st.spinner("Generating personalized recommendations..."):
|
425 |
# AI-generated recommendations
|
426 |
ai_prompt = f"""Generate personalized digital skills recommendations for a {age}-year-old with {education} education,
|
427 |
skills in {', '.join(current_skills)}, located in {location}, aiming for a career in {career_goal}.
|
428 |
+
Provide a detailed learning path, skill priorities, job market insights, and potential challenges to overcome. Well structured for easy understanding"""
|
429 |
recommendations = call_ai_model(ai_prompt)
|
430 |
|
431 |
st.markdown("### Your Personalized Digital Skills Roadmap")
|