ogegadavis254 commited on
Commit
2306090
1 Parent(s): 91ad748

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -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")
@@ -280,7 +280,7 @@ elif page == "Skills Analysis":
280
  st.plotly_chart(fig, use_container_width=True)
281
 
282
  # AI Insights (with timeout)
283
- ai_prompt = f"Briefly and shortly analyze the demand for {', '.join(skills)} in {', '.join(regions)} over the {time_period}. Provide key insights on trends and gaps."
284
  try:
285
  with st.spinner("Generating AI insights..."):
286
  ai_insights = call_ai_model(ai_prompt)
 
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
+ ["Kisii", "Nyamira", "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")
 
280
  st.plotly_chart(fig, use_container_width=True)
281
 
282
  # AI Insights (with timeout)
283
+ ai_prompt = f"Briefly analyze the demand for {', '.join(skills)} in {', '.join(regions)} over the {time_period}. You can be negative on some skills too, just be free. Provide key insights on trends and gaps. Each region with its analysis and use percentages sometimes"
284
  try:
285
  with st.spinner("Generating AI insights..."):
286
  ai_insights = call_ai_model(ai_prompt)