Update my_pages/information_loss.py
Browse files
my_pages/information_loss.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import pandas as pd
|
| 2 |
import streamlit as st
|
| 3 |
-
from utils import add_navigation, add_instruction_text
|
| 4 |
|
| 5 |
ALL_FEATURES = [
|
| 6 |
("Liquid Assets", ["Liquid Assets"],
|
|
@@ -70,10 +70,7 @@ def render():
|
|
| 70 |
st.rerun()
|
| 71 |
|
| 72 |
if "show_message" in st.session_state:
|
| 73 |
-
st.
|
| 74 |
-
f"<div style='text-align:center; color:#c0392b; font-size:20px; margin:14px 0;'>{st.session_state.show_message}</div>",
|
| 75 |
-
unsafe_allow_html=True,
|
| 76 |
-
)
|
| 77 |
del st.session_state.show_message
|
| 78 |
|
| 79 |
#### Selected features shown at the bottom
|
|
|
|
| 1 |
import pandas as pd
|
| 2 |
import streamlit as st
|
| 3 |
+
from utils import add_navigation, add_instruction_text, add_red_text
|
| 4 |
|
| 5 |
ALL_FEATURES = [
|
| 6 |
("Liquid Assets", ["Liquid Assets"],
|
|
|
|
| 70 |
st.rerun()
|
| 71 |
|
| 72 |
if "show_message" in st.session_state:
|
| 73 |
+
add_red_text(st.session_state.show_message)
|
|
|
|
|
|
|
|
|
|
| 74 |
del st.session_state.show_message
|
| 75 |
|
| 76 |
#### Selected features shown at the bottom
|