Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 185 |
-
|
| 186 |
-
# name = 'parking_detection_fv',
|
| 187 |
-
# version = 1)
|
| 188 |
|
| 189 |
-
# Function to loading the
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
|
|
|
| 194 |
|
| 195 |
-
# Retrieving
|
| 196 |
-
|
| 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)
|