elli-teu commited on
Commit
7edb958
·
1 Parent(s): e4fbfab
Files changed (2) hide show
  1. app.py +5 -4
  2. requirements.txt +0 -0
app.py CHANGED
@@ -90,11 +90,11 @@ def main():
90
  st.session_state.data = None
91
 
92
  # User inputs for feature group and version
93
- st.sidebar.title("Data Settings")
94
  feature_group_name = st.sidebar.text_input("Feature Group Name", value="predictions")
95
  version = st.sidebar.number_input("Feature Group Version", value=1, min_value=1)
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.")
@@ -107,8 +107,9 @@ def main():
107
  st.success("Connected to Hopsworks!")
108
 
109
  project = st.session_state.hopsworks_project
110
- data = fetch_data_from_feature_group(project, feature_group_name, version)
111
- filepath = save_data_locally(data, filename)
 
112
  st.session_state.data = data
113
  st.success(f"Data fetched and saved locally at {filepath}")
114
 
 
90
  st.session_state.data = None
91
 
92
  # User inputs for feature group and version
93
+ """st.sidebar.title("Data Settings")
94
  feature_group_name = st.sidebar.text_input("Feature Group Name", value="predictions")
95
  version = st.sidebar.number_input("Feature Group Version", value=1, min_value=1)
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.")
 
107
  st.success("Connected to Hopsworks!")
108
 
109
  project = st.session_state.hopsworks_project
110
+ data = fetch_data_from_feature_group(project, "predictions", 1)
111
+ print(data.head())
112
+ filepath = save_data_locally(data, "./data")
113
  st.session_state.data = data
114
  st.success(f"Data fetched and saved locally at {filepath}")
115
 
requirements.txt ADDED
File without changes