Spaces:
Running
Running
Update my_model/state_manager.py
Browse files
my_model/state_manager.py
CHANGED
@@ -427,12 +427,12 @@ class StateManager:
|
|
427 |
return self.col3.write(df)
|
428 |
|
429 |
|
430 |
-
def display_session_state(self):
|
431 |
"""
|
432 |
Displays a table of the complete application state..
|
433 |
"""
|
434 |
|
435 |
-
|
436 |
data = [{'Key': key, 'Value': str(value)} for key, value in st.session_state.items()]
|
437 |
df = pd.DataFrame(data).reset_index(drop=True)
|
438 |
-
|
|
|
427 |
return self.col3.write(df)
|
428 |
|
429 |
|
430 |
+
def display_session_state(self, col):
|
431 |
"""
|
432 |
Displays a table of the complete application state..
|
433 |
"""
|
434 |
|
435 |
+
col.write("Current Model:")
|
436 |
data = [{'Key': key, 'Value': str(value)} for key, value in st.session_state.items()]
|
437 |
df = pd.DataFrame(data).reset_index(drop=True)
|
438 |
+
col.write(df)
|