Update my_pages/home.py
Browse files- my_pages/home.py +13 -7
my_pages/home.py
CHANGED
|
@@ -38,12 +38,12 @@ def render():
|
|
| 38 |
)
|
| 39 |
|
| 40 |
sentences = [
|
| 41 |
-
("Translating real world into concrete data
|
| 42 |
-
("This loss in information leaves room for multiple interpretations of the data, known as the Rashomon effect. \
|
| 43 |
-
This can lead to conflicting predictions across various interpretations for individuals, known as Multiplicity.", "rashomon_effect"),
|
| 44 |
-
("Model developers play an important role steering the model across multiple interpretations, leading to a particular choice.", "developer_decisions"),
|
| 45 |
-
("ICA Framework.", "ica"),
|
| 46 |
-
("Multiverse", "multiverse"),
|
| 47 |
]
|
| 48 |
color_dict = {"information_loss": "#FF6B6B", "rashomon_effect": "#FFD93D", "developer_decisions": "#6BCB77", "ica": "#FF9F1C", "multiverse": "#9D4EDD"}
|
| 49 |
|
|
@@ -56,7 +56,13 @@ def render():
|
|
| 56 |
color: {color_dict[page]};
|
| 57 |
}}""",
|
| 58 |
):
|
| 59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
for page in button_clicked_dict:
|
| 62 |
if button_clicked_dict[page]:
|
|
|
|
| 38 |
)
|
| 39 |
|
| 40 |
sentences = [
|
| 41 |
+
(["Translating real world into concrete data", "to train AI models leads to", "inherent loss in information."], "information_loss"),
|
| 42 |
+
(["This loss in information leaves room for multiple interpretations of the data, known as the Rashomon effect. \
|
| 43 |
+
This can lead to conflicting predictions across various interpretations for individuals, known as Multiplicity."], "rashomon_effect"),
|
| 44 |
+
(["Model developers play an important role steering the model across multiple interpretations, leading to a particular choice."], "developer_decisions"),
|
| 45 |
+
(["ICA Framework."], "ica"),
|
| 46 |
+
(["Multiverse"], "multiverse"),
|
| 47 |
]
|
| 48 |
color_dict = {"information_loss": "#FF6B6B", "rashomon_effect": "#FFD93D", "developer_decisions": "#6BCB77", "ica": "#FF9F1C", "multiverse": "#9D4EDD"}
|
| 49 |
|
|
|
|
| 56 |
color: {color_dict[page]};
|
| 57 |
}}""",
|
| 58 |
):
|
| 59 |
+
# for pieces in text:
|
| 60 |
+
# string_to_add =
|
| 61 |
+
|
| 62 |
+
# Join with LaTeX line breaks
|
| 63 |
+
latex_content = r"$\large" + r"\\".join([rf"\text{{{line}}}" for line in text]) + r"$"
|
| 64 |
+
# button_clicked_dict[page] = st.button(rf"$\large\text{{{text}}}$", type="primary")
|
| 65 |
+
button_clicked_dict[page] = st.button(latex_content, type="primary")
|
| 66 |
|
| 67 |
for page in button_clicked_dict:
|
| 68 |
if button_clicked_dict[page]:
|