prakharg24 commited on
Commit
5d51b2c
·
verified ·
1 Parent(s): 30c29e9

Update my_pages/information_loss.py

Browse files
Files changed (1) hide show
  1. my_pages/information_loss.py +33 -14
my_pages/information_loss.py CHANGED
@@ -21,23 +21,42 @@ def render():
21
  add_instruction_text(
22
  """
23
  Consider the automation of loan approval using AI models. <br>
24
- Select the features below that you would like to collect to train your AI model.
 
25
  """
26
  )
27
 
28
- st.markdown(
29
- """
30
- <style>
31
- button[kind="primary"] {
32
- background: green!important;
33
- }
34
- button[kind="tertiary"] {
35
- background: yellow!important;
36
- }
37
- </style>
38
- """,
39
- unsafe_allow_html=True,
40
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
  # Session state init
43
  # if "available_features" not in st.session_state:
 
21
  add_instruction_text(
22
  """
23
  Consider the automation of loan approval using AI models. <br>
24
+ Select the features below that you would like to collect to train your AI model. <br>
25
+ Notice that, in trying to capture data from the real world, you loose information.
26
  """
27
  )
28
 
29
+ # st.markdown(
30
+ # """
31
+ # <style>
32
+ # button[kind="primary"] {
33
+ # background: green!important;
34
+ # }
35
+ # button[kind="tertiary"] {
36
+ # background: yellow!important;
37
+ # }
38
+ # </style>
39
+ # """,
40
+ # unsafe_allow_html=True,
41
+ # )
42
+ # Fetch theme colors
43
+ bg = st.get_option("theme.backgroundColor")
44
+ sec_bg = st.get_option("theme.secondaryBackgroundColor")
45
+ text = st.get_option("theme.textColor")
46
+
47
+ css = f"""
48
+ <style>
49
+ button[kind="tertiary"] {{
50
+ background-color: {sec_bg} !important;
51
+ color: {text} !important;
52
+ border: 1px solid {sec_bg} !important;
53
+ opacity: 0.5 !important; /* faded look */
54
+ cursor: not-allowed !important; /* shows it's inactive */
55
+ pointer-events: none !important; /* disable clicking */
56
+ }}
57
+ </style>
58
+ """
59
+ st.markdown(css, unsafe_allow_html=True)
60
 
61
  # Session state init
62
  # if "available_features" not in st.session_state: