elli-teu commited on
Commit
8dd2873
·
1 Parent(s): f6df621

Lagt till twofish

Browse files
Files changed (2) hide show
  1. app.py +5 -5
  2. requirements.txt +1 -0
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,7 +115,7 @@ 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()
121
 
@@ -127,4 +127,4 @@ main()
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
 
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
 
 
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
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  hopsworks
2
  matplotlib
3
  seaborn
 
1
+ twofish
2
  hopsworks
3
  matplotlib
4
  seaborn