elli-teu
commited on
Commit
·
d5c7130
1
Parent(s):
7edb958
Update app.py
Browse files
app.py
CHANGED
@@ -83,11 +83,11 @@ def plot_graphs(data):
|
|
83 |
def main():
|
84 |
st.title("Hopsworks Feature Group Explorer")
|
85 |
|
86 |
-
# Initialize session state
|
87 |
if "hopsworks_project" not in st.session_state:
|
88 |
st.session_state.hopsworks_project = None
|
89 |
if "data" not in st.session_state:
|
90 |
-
st.session_state.data = None
|
91 |
|
92 |
# User inputs for feature group and version
|
93 |
"""st.sidebar.title("Data Settings")
|
@@ -96,7 +96,7 @@ def main():
|
|
96 |
filename = st.sidebar.text_input("Local Filename", value="data.csv")
|
97 |
"""
|
98 |
# Check for valid local data
|
99 |
-
if is_local_data_valid():
|
100 |
st.write("Using cached local data.")
|
101 |
st.session_state.data = load_local_data(filename)
|
102 |
else:
|
@@ -115,6 +115,16 @@ def main():
|
|
115 |
|
116 |
# Display data and graphs
|
117 |
if st.session_state.data is not None:
|
118 |
-
plot_graphs(st.session_state.data)
|
119 |
|
120 |
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
def main():
|
84 |
st.title("Hopsworks Feature Group Explorer")
|
85 |
|
86 |
+
"""# Initialize session state
|
87 |
if "hopsworks_project" not in st.session_state:
|
88 |
st.session_state.hopsworks_project = None
|
89 |
if "data" not in st.session_state:
|
90 |
+
st.session_state.data = None"""
|
91 |
|
92 |
# User inputs for feature group and version
|
93 |
"""st.sidebar.title("Data Settings")
|
|
|
96 |
filename = st.sidebar.text_input("Local Filename", value="data.csv")
|
97 |
"""
|
98 |
# Check for valid local data
|
99 |
+
"""if is_local_data_valid():
|
100 |
st.write("Using cached local data.")
|
101 |
st.session_state.data = load_local_data(filename)
|
102 |
else:
|
|
|
115 |
|
116 |
# Display data and graphs
|
117 |
if st.session_state.data is not None:
|
118 |
+
plot_graphs(st.session_state.data)"""
|
119 |
|
120 |
main()
|
121 |
+
|
122 |
+
# Visa alla busslinjer? Söka?
|
123 |
+
# Hur se riktning?
|
124 |
+
# Filtrera på busslinje och riktning
|
125 |
+
# Filtrera på tid
|
126 |
+
# Ska användaren ange tid
|
127 |
+
# Se alla unika trip ids
|
128 |
+
# Mappa position till stop
|
129 |
+
# Visa någon sorts graf för alla bussar inom den tiden
|
130 |
+
# Ska det vara för alla stopp eller bara de som användaren angivit att den ska åka mellan
|