Bjerring98 commited on
Commit
2b19c7c
·
verified ·
1 Parent(s): b3ca964

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -445,10 +445,12 @@ elif option == "Financial Recommender Engine":
445
  st.write(f"- {rec}")
446
  else:
447
  st.write("Click the 'Get Recommendations' button to receive personalized financial recommendations.")
448
-
449
- elif option == "SML Classication":
450
- st.markdown("<h2 style='text-align: center;'>Income Bracket & SHAP Analysis</h2>", unsafe_allow_html=True)
451
 
 
 
 
 
 
452
  st.subheader('Enter your information')
453
 
454
  # Categorical Inputs
@@ -471,7 +473,7 @@ elif option == "SML Classication":
471
  'Place of living': [place_of_living],
472
  'Education Level': [education_level],
473
  'Age Group': [age_group],
474
- 'Income Bracket': [income_bracket] # No longer using income_value
475
  })
476
 
477
  # Transform categorical features using the loaded OneHotEncoder
@@ -514,7 +516,4 @@ elif option == "SML Classication":
514
  This plot shows how each feature contributes to the predicted likelihood of saving:
515
  - Blue bars push the probability lower
516
  - Red bars push the probability higher
517
- """)
518
-
519
- # Continue with other sections such as "Regional-Based Analysis", "Income-Based Analysis", etc.
520
- # ...
 
445
  st.write(f"- {rec}")
446
  else:
447
  st.write("Click the 'Get Recommendations' button to receive personalized financial recommendations.")
 
 
 
448
 
449
+ elif option == "SML Classification": # This is the section you want to display content on
450
+ st.markdown("<h2 style='text-align: center;'>SML Classification</h2>", unsafe_allow_html=True)
451
+
452
+ st.write("This section allows you to predict savings behavior based on multiple variables.")
453
+
454
  st.subheader('Enter your information')
455
 
456
  # Categorical Inputs
 
473
  'Place of living': [place_of_living],
474
  'Education Level': [education_level],
475
  'Age Group': [age_group],
476
+ 'Income Bracket': [income_bracket]
477
  })
478
 
479
  # Transform categorical features using the loaded OneHotEncoder
 
516
  This plot shows how each feature contributes to the predicted likelihood of saving:
517
  - Blue bars push the probability lower
518
  - Red bars push the probability higher
519
+ """)