Spaces:
Sleeping
Sleeping
Update app.py
Browse files444 unmodified lines44544644744844945045145245345416 unmodified lines47147247347447547647736 unmodified lines514515516517518519520444 unmodified linesst.write(f"- {rec}")else:st.write("Click the 'Get Recommendations' button to receive personalized financial recommendations.")elif option == "SML Classication":st.markdown("<h2 style='text-align: center;'>Income Bracket & SHAP Analysis</h2>", unsafe_allow_html=True)st.subheader('Enter your information')# Categorical Inputs16 unmodified lines'Place of living': [place_of_living],'Education Level': [education_level],'Age Group': [age_group],'Income Bracket': [income_bracket] # No longer using income_value})# Transform categorical features using the loaded OneHotEncoder36 unmodified linesThis plot shows how each feature contributes to the predicted likelihood of saving:- Blue bars push the probability lower- Red bars push the probability higher""")# Continue with other sections such as "Regional-Based Analysis", "Income-Based Analysis", etc.# ...444 unmodified lines44544644744844945045145245345445545616 unmodified lines47347447547647747847936 unmodified lines516517518519444 unmodified linesst.write(f"- {rec}")else:st.write("Click the 'Get Recommendations' button to receive personalized financial recommendations.")elif option == "SML Classification": # This is the section you want to display content onst.markdown("<h2 style='text-align: center;'>SML Classification</h2>", unsafe_allow_html=True)st.write("This section allows you to predict savings behavior based on multiple variables.")st.subheader('Enter your information')# Categorical Inputs16 unmodified lines'Place of living': [place_of_living],'Education Level': [education_level],'Age Group': [age_group],'Income Bracket': [income_bracket]})# Transform categorical features using the loaded OneHotEncoder36 unmodified linesThis plot shows how each feature contributes to the predicted likelihood of saving:- Blue bars push the probability lower- Red bars push the probability higher""")
app.py+7-8