Spaces:
Sleeping
Sleeping
Carsten Stahl
commited on
Commit
•
cf46b3a
1
Parent(s):
d89670a
found better name for composer
Browse files- main.py +5 -5
- utilities/py/composer.py +1 -1
main.py
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
import pandas as pd
|
2 |
|
3 |
from utilities.py.styling import streamlit_style
|
4 |
-
from utilities.py.composer import
|
5 |
|
6 |
|
7 |
streamlit_style()
|
8 |
# data import
|
9 |
company_list_df = pd.read_csv("utilities/data/Company List.csv")
|
10 |
|
11 |
-
|
12 |
|
13 |
-
|
14 |
|
15 |
-
ready_to_render_results = len(
|
16 |
|
17 |
if ready_to_render_results:
|
18 |
-
|
|
|
1 |
import pandas as pd
|
2 |
|
3 |
from utilities.py.styling import streamlit_style
|
4 |
+
from utilities.py.composer import CapiPortApp
|
5 |
|
6 |
|
7 |
streamlit_style()
|
8 |
# data import
|
9 |
company_list_df = pd.read_csv("utilities/data/Company List.csv")
|
10 |
|
11 |
+
capi_port = CapiPortApp(company_list_df)
|
12 |
|
13 |
+
capi_port.render_user_input()
|
14 |
|
15 |
+
ready_to_render_results = len(capi_port.user_input.get_selected_comp_ids()) > 1
|
16 |
|
17 |
if ready_to_render_results:
|
18 |
+
capi_port.render_results()
|
utilities/py/composer.py
CHANGED
@@ -6,7 +6,7 @@ from utilities.py.ui_elements import UserInput
|
|
6 |
from utilities.py import plots, summary_tables
|
7 |
|
8 |
|
9 |
-
class
|
10 |
def __init__(self, company_df):
|
11 |
"""
|
12 |
Class for composing the apps UI on a high level. Is meant to provide a readable overview, of what happens inside the app, without being concerned with unnecessary details.
|
|
|
6 |
from utilities.py import plots, summary_tables
|
7 |
|
8 |
|
9 |
+
class CapiPortApp:
|
10 |
def __init__(self, company_df):
|
11 |
"""
|
12 |
Class for composing the apps UI on a high level. Is meant to provide a readable overview, of what happens inside the app, without being concerned with unnecessary details.
|