Annikaijak commited on
Commit
a4264b0
·
verified ·
1 Parent(s): a7271f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -181,21 +181,22 @@ with tab4:
181
  st.subheader("Overview of the historic building dataset")
182
  st.dataframe(building_historic.head())
183
 
184
- # Loading the parking detection feature view
185
- #parking_detection_fv = fs.get_feature_view(
186
- # name = 'parking_detection_fv',
187
- # version = 1)
188
 
189
- # Function to loading the parking detection feature view as a dataset
190
- #@st.cache_data()
191
- #def retrieve_batch_data(feature_view=parking_detection_fv):
192
- # batch_data = feature_view.get_batch_data()
193
- # return batch_data
 
194
 
195
- # Retrieving batch data
196
- #batch_data = retrieve_batch_data()
197
 
198
-
 
 
199
 
200
  # Making a countplot of the predictions
201
  #predictions = model.predict(batch_data)
 
181
  st.subheader("Overview of the historic building dataset")
182
  st.dataframe(building_historic.head())
183
 
184
+ # Loading the feature group with historic data for bikelane
185
+ api_bikelane_detection_features_fg = fs.get_feature_group(name = 'api_bikelane_detection_features', version = 1)
 
 
186
 
187
+ # Function to loading the feature group with latest data for building as a dataset
188
+ @st.cache_data()
189
+ def retrieve_bikelane_historic(feature_group=api_bikelane_detection_features_fg):
190
+ api_bikelane_detection_features_fg = feature_group.select_all()
191
+ df_bikelane_historic = api_bikelane_detection_features_fg.read(read_options={"use_hive": True})
192
+ return df_bikelane_historic
193
 
194
+ # Retrieving building data
195
+ bikelane_historic = retrieve_bikelane_historic()
196
 
197
+ # Display historic building dataset overview
198
+ st.subheader("Overview of the historic bikelane dataset")
199
+ st.dataframe(bikelane_historic.head())
200
 
201
  # Making a countplot of the predictions
202
  #predictions = model.predict(batch_data)