Spaces:
Running
Running
Update my_model/utilities/ui_manager.py
Browse files
my_model/utilities/ui_manager.py
CHANGED
@@ -40,7 +40,7 @@ class UIManager():
|
|
40 |
state_manager.initialize_state()
|
41 |
|
42 |
|
43 |
-
|
44 |
"""
|
45 |
Adds a new tab to the UI.
|
46 |
|
@@ -51,7 +51,7 @@ class UIManager():
|
|
51 |
Returns:
|
52 |
None
|
53 |
"""
|
54 |
-
|
55 |
self.tabs[tab_name] = display_function
|
56 |
|
57 |
|
|
|
40 |
state_manager.initialize_state()
|
41 |
|
42 |
|
43 |
+
def add_tab(self, tab_name: str, display_function: callable) -> None:
|
44 |
"""
|
45 |
Adds a new tab to the UI.
|
46 |
|
|
|
51 |
Returns:
|
52 |
None
|
53 |
"""
|
54 |
+
|
55 |
self.tabs[tab_name] = display_function
|
56 |
|
57 |
|