Update my_pages/home.py
Browse files- my_pages/home.py +7 -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
|
| 43 |
-
|
| 44 |
-
(["
|
| 45 |
-
(["
|
| 46 |
-
|
| 47 |
]
|
| 48 |
color_dict = {"information_loss": "#FF6B6B", "rashomon_effect": "#FFD93D", "developer_decisions": "#6BCB77", "ica": "#FF9F1C", "multiverse": "#9D4EDD"}
|
| 49 |
|
|
@@ -60,7 +60,7 @@ def render():
|
|
| 60 |
# string_to_add =
|
| 61 |
|
| 62 |
# Join with LaTeX line breaks
|
| 63 |
-
latex_content = 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 |
|
|
|
|
| 38 |
)
|
| 39 |
|
| 40 |
sentences = [
|
| 41 |
+
(["Translating the real world into concrete data", "can result in information loss."], "information_loss"),
|
| 42 |
+
(["This leaves room for multiple interpretations", "of the data (Rashomon effect),", "thus leading to conflicting predictions (Multiplicity)."], "rashomon_effect"),
|
| 43 |
+
(["Model development involves countless decisions,", "many of which directly impact", "the eventual interpretation being chosen."], "developer_decisions"),
|
| 44 |
+
(["Under the intention-convention-arbitrariness (ICA) framework,"], "ica"),
|
| 45 |
+
(["while intentional decisions can help improve model properties,", "conventional decisions can lead to homogenization,",
|
| 46 |
+
"and arbitrary decisions can lead to conflicting predictions."], "multiverse"),
|
| 47 |
]
|
| 48 |
color_dict = {"information_loss": "#FF6B6B", "rashomon_effect": "#FFD93D", "developer_decisions": "#6BCB77", "ica": "#FF9F1C", "multiverse": "#9D4EDD"}
|
| 49 |
|
|
|
|
| 60 |
# string_to_add =
|
| 61 |
|
| 62 |
# Join with LaTeX line breaks
|
| 63 |
+
latex_content = r"$\normalsize" + 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 |
|