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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -3
app.py CHANGED
@@ -164,6 +164,23 @@ with tab3:
164
  with tab4:
165
  st.markdown('...')
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  # Loading the parking detection feature view
168
  #parking_detection_fv = fs.get_feature_view(
169
  # name = 'parking_detection_fv',
@@ -178,9 +195,7 @@ with tab4:
178
  # Retrieving batch data
179
  #batch_data = retrieve_batch_data()
180
 
181
- # Display dataset overview
182
- #st.subheader("Dataset Overview")
183
- #st.dataframe(batch_data.head())
184
 
185
  # Making a countplot of the predictions
186
  #predictions = model.predict(batch_data)
 
164
  with tab4:
165
  st.markdown('...')
166
 
167
+ # Loading the feature group with historic data for building
168
+ api_building_detection_features_fg = fs.get_feature_group(name = 'api_building_detection_features', version = 1)
169
+
170
+ # Function to loading the feature group with latest data for building as a dataset
171
+ @st.cache_data()
172
+ def retrieve_building_historic(feature_group=api_building_detection_features_fg):
173
+ api_building_detection_features_fg = feature_group.select_all()
174
+ df_building_historic = api_building_detection_features_fg.read(read_options={"use_hive": True})
175
+ return df_building_historic
176
+
177
+ # Retrieving building data
178
+ building_historic = retrieve_building_historic()
179
+
180
+ # Display historic building dataset overview
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',
 
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)