Update my_model/utilities/state_manager.py
Browse files
my_model/utilities/state_manager.py
CHANGED
@@ -39,7 +39,7 @@ class StateManager:
|
|
39 |
st.write("#### Current Model Settings:")
|
40 |
data = [{'Key': key, 'Value': str(value)} for key, value in st.session_state.items() if key in ["confidence_level", 'detection_model', 'method', 'kbvqa']]
|
41 |
df = pd.DataFrame(data)
|
42 |
-
styled_df = df.style.set_properties(**{'background-color': 'black', 'color': 'white', 'border-color': 'white'}).set_table_styles([{'selector': 'th','props': [('background-color', '
|
43 |
st.table(styled_df)
|
44 |
|
45 |
def display_session_state(self):
|
|
|
39 |
st.write("#### Current Model Settings:")
|
40 |
data = [{'Key': key, 'Value': str(value)} for key, value in st.session_state.items() if key in ["confidence_level", 'detection_model', 'method', 'kbvqa']]
|
41 |
df = pd.DataFrame(data)
|
42 |
+
styled_df = df.style.set_properties(**{'background-color': 'black', 'color': 'white', 'border-color': 'white'}).set_table_styles([{'selector': 'th','props': [('background-color', 'black'), ('font-weight', 'bold')]}])
|
43 |
st.table(styled_df)
|
44 |
|
45 |
def display_session_state(self):
|