Update my_pages/information_loss.py
Browse files- my_pages/information_loss.py +2 -10
my_pages/information_loss.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import pandas as pd
|
| 2 |
import streamlit as st
|
| 3 |
-
from streamlit_extras.stylable_container import stylable_container
|
| 4 |
from utils import go_to
|
| 5 |
|
| 6 |
ALL_FEATURES = [
|
|
@@ -20,7 +19,7 @@ def render():
|
|
| 20 |
st.markdown(
|
| 21 |
"""
|
| 22 |
<style>
|
| 23 |
-
button[kind="
|
| 24 |
background: green!important;
|
| 25 |
}
|
| 26 |
</style>
|
|
@@ -63,14 +62,7 @@ def render():
|
|
| 63 |
for feature in ALL_FEATURES.copy():
|
| 64 |
if feature in st.session_state.selected_features:
|
| 65 |
feature_name = feature[1]
|
| 66 |
-
|
| 67 |
-
feature_name,
|
| 68 |
-
css_styles=f"""
|
| 69 |
-
button {{
|
| 70 |
-
background: green!important;
|
| 71 |
-
}}""",
|
| 72 |
-
):
|
| 73 |
-
_ = st.button(feature_name, type="selected")
|
| 74 |
else:
|
| 75 |
feature_name = feature[0]
|
| 76 |
if st.button(feature_name):
|
|
|
|
| 1 |
import pandas as pd
|
| 2 |
import streamlit as st
|
|
|
|
| 3 |
from utils import go_to
|
| 4 |
|
| 5 |
ALL_FEATURES = [
|
|
|
|
| 19 |
st.markdown(
|
| 20 |
"""
|
| 21 |
<style>
|
| 22 |
+
button[kind="primary"] {
|
| 23 |
background: green!important;
|
| 24 |
}
|
| 25 |
</style>
|
|
|
|
| 62 |
for feature in ALL_FEATURES.copy():
|
| 63 |
if feature in st.session_state.selected_features:
|
| 64 |
feature_name = feature[1]
|
| 65 |
+
_ = st.button(feature_name, type="primary")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
else:
|
| 67 |
feature_name = feature[0]
|
| 68 |
if st.button(feature_name):
|