Spaces:
Running
Running
Update my_model/utilities/ui_manager.py
Browse files
my_model/utilities/ui_manager.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import pandas as pd
|
2 |
import streamlit as st
|
3 |
from my_model.tabs.run_inference import InferenceRunner
|
|
|
4 |
|
5 |
-
class UIManager:
|
6 |
"""Manages the user interface for the Streamlit application."""
|
7 |
|
8 |
def __init__(self):
|
@@ -18,6 +19,9 @@ class UIManager:
|
|
18 |
"More Pages will follow .. ": self.display_placeholder
|
19 |
}
|
20 |
|
|
|
|
|
|
|
21 |
|
22 |
def add_tab(self, tab_name, display_function):
|
23 |
"""Adds a new tab to the UI."""
|
|
|
1 |
import pandas as pd
|
2 |
import streamlit as st
|
3 |
from my_model.tabs.run_inference import InferenceRunner
|
4 |
+
from my_model.state_manager import StateManager
|
5 |
|
6 |
+
class UIManager():
|
7 |
"""Manages the user interface for the Streamlit application."""
|
8 |
|
9 |
def __init__(self):
|
|
|
19 |
"More Pages will follow .. ": self.display_placeholder
|
20 |
}
|
21 |
|
22 |
+
state_manager = StateManager()
|
23 |
+
state_manager.initialize_state()
|
24 |
+
|
25 |
|
26 |
def add_tab(self, tab_name, display_function):
|
27 |
"""Adds a new tab to the UI."""
|