prakharg24 commited on
Commit
a400f33
·
verified ·
1 Parent(s): ee2c687

Update my_pages/information_loss.py

Browse files
Files changed (1) hide show
  1. my_pages/information_loss.py +12 -10
my_pages/information_loss.py CHANGED
@@ -3,16 +3,18 @@ import streamlit as st
3
  from utils import add_navigation, add_instruction_text
4
 
5
  ALL_FEATURES = [
6
- ("Liquid Assets", ["Liquid Assets"], "Added"),
7
- ("Illiquid Assets", ["Property appraisals, Insurance valuations, etc."],
8
- "Sorry, it is not possible to get the precise value of illiquid assets. We will use some approximate alternatives instead."),
9
- ("Current Debts", ["Current Debts"], "Added"),
 
 
10
  ("Income Stability", ["Past Income Stability"],
11
- "Sorry, it is not possible to know precisely how stable someone's income will be in future. Until someone invents a time machine (we're hopeful!), we will instead use past income stability."),
12
  ("Health Trajectory", ["Current Health Indicators"],
13
- "Sorry, it is not possible to know precisely how will someone's health change in the future. Until someone invents a time machine (we're hopeful!), we will instead use current health indicators."),
14
  ("Financial Discipline", ["Credit Score"],
15
- "Sorry, financial discipline is not a directly measurable quality. We will use credit score as an approximation instead.")
16
  ]
17
 
18
  def render():
@@ -63,7 +65,7 @@ def render():
63
  _ = st.button(feature[0], type="tertiary")
64
  else:
65
  if st.button(feature[0]):
66
- st.session_state.selected_features.extend(feature[1])
67
  st.session_state.show_message = feature[2]
68
  st.rerun()
69
 
@@ -83,8 +85,8 @@ def render():
83
 
84
  for i, item in enumerate(st.session_state.selected_features):
85
  if i % 2 == 0:
86
- col1.markdown(f"- {item}")
87
  else:
88
- col2.markdown(f"- {item}")
89
  else:
90
  st.info("No features added yet. Click a feature above to add it to the dataset.")
 
3
  from utils import add_navigation, add_instruction_text
4
 
5
  ALL_FEATURES = [
6
+ ("Liquid Assets", ["Liquid Assets"],
7
+ "Great choice! With access to bank accounts, a measure of all liquid assets can really help make a decision about loan approval."),
8
+ ("Illiquid Assets", ["Property appraisals", "Insurance valuations"],
9
+ "Oops, it is not possible to precisely calculate the value of illiquid assets! We will use some approximate alternatives instead."),
10
+ ("Debt Obligations", ["Credit Card Debts", "Bank Loans", "Self-reported Debts"],
11
+ "Oops, it is not possible to precisely measure all debt obligations! We will use credit card debts, bank loans, and other self-reported debts as approximate alternatives instead."),
12
  ("Income Stability", ["Past Income Stability"],
13
+ "Sorry, it is not possible to know precisely how stable someone's income will be in future. Until someone invents a time machine (we're hopeful!), we can instead approximate with past income stability."),
14
  ("Health Trajectory", ["Current Health Indicators"],
15
+ "Sorry, it is not possible to know precisely how will someone's health change in the future. Until someone invents a time machine (we're hopeful!), we can instead approximate with current health indicators."),
16
  ("Financial Discipline", ["Credit Score"],
17
+ "Oops, financial discipline is not a directly measurable quality. We will use credit score as an approximation instead.")
18
  ]
19
 
20
  def render():
 
65
  _ = st.button(feature[0], type="tertiary")
66
  else:
67
  if st.button(feature[0]):
68
+ st.session_state.selected_features.extend(feature)
69
  st.session_state.show_message = feature[2]
70
  st.rerun()
71
 
 
85
 
86
  for i, item in enumerate(st.session_state.selected_features):
87
  if i % 2 == 0:
88
+ col1.markdown(f"- {item[1]}")
89
  else:
90
+ col2.markdown(f"- {item[1]}")
91
  else:
92
  st.info("No features added yet. Click a feature above to add it to the dataset.")