prakharg24 commited on
Commit
08f0cbb
·
verified ·
1 Parent(s): 7be2c91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -24
app.py CHANGED
@@ -10,18 +10,6 @@ st.markdown(
10
  align-items: center;
11
  text-align: center;
12
  }
13
- div[data-testid="stButton"] > button {
14
- background: none;
15
- color: #3366cc;
16
- border: none;
17
- padding: 0;
18
- font-size: 20px;
19
- text-decoration: underline;
20
- cursor: pointer;
21
- }
22
- div[data-testid="stButton"] {
23
- display: inline;
24
- }
25
  </style>
26
  """,
27
  unsafe_allow_html=True
@@ -69,18 +57,23 @@ if st.session_state.page == "landing":
69
  # -----------------------------
70
  elif st.session_state.page == "main":
71
  st.markdown("<div class='center-container'>", unsafe_allow_html=True)
72
- st.write("") # spacing
73
-
74
- st.write("Click any sentence to explore:")
75
-
76
- # Build paragraph-like flow
77
- st.button("Multiplicity: Many models, same accuracy, different predictions.", key="s0", on_click=go_to, args=("sentence_0",))
78
- st.write(" ", unsafe_allow_html=True)
79
- st.button("ICA Framework: Intentional, Conventional, and Arbitrary decisions.", key="s1", on_click=go_to, args=("sentence_1",))
80
- st.write(" ", unsafe_allow_html=True)
81
- st.button("Arbitrariness: Why different models might treat individuals differently.", key="s2", on_click=go_to, args=("sentence_2",))
82
- st.write(" ", unsafe_allow_html=True)
83
- st.button("Homogenization: Why similar decisions happen across many developers.", key="s3", on_click=go_to, args=("sentence_3",))
 
 
 
 
 
84
 
85
  st.markdown("</div>", unsafe_allow_html=True)
86
 
 
10
  align-items: center;
11
  text-align: center;
12
  }
 
 
 
 
 
 
 
 
 
 
 
 
13
  </style>
14
  """,
15
  unsafe_allow_html=True
 
57
  # -----------------------------
58
  elif st.session_state.page == "main":
59
  st.markdown("<div class='center-container'>", unsafe_allow_html=True)
60
+
61
+ st.markdown(
62
+ "<div style='font-size:24px; color:#3366cc; font-weight:bold;'>Explore the concepts:</div>",
63
+ unsafe_allow_html=True
64
+ )
65
+ st.write("")
66
+
67
+ sentences = [
68
+ "Multiplicity: Many models, same accuracy, different predictions.",
69
+ "ICA Framework: Intentional, Conventional, and Arbitrary decisions.",
70
+ "Arbitrariness: Why different models might treat individuals differently.",
71
+ "Homogenization: Why similar decisions happen across many developers."
72
+ ]
73
+
74
+ for i, sentence in enumerate(sentences):
75
+ if st.button(sentence, key=f"sentence_{i}"):
76
+ go_to(f"sentence_{i}")
77
 
78
  st.markdown("</div>", unsafe_allow_html=True)
79