Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,13 +78,13 @@ with tab1:
|
|
| 78 |
|
| 79 |
# Function to loading the feature group with latest data for building as a dataset
|
| 80 |
@st.cache_data()
|
| 81 |
-
def
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
return
|
| 85 |
|
| 86 |
# Retrieving building data
|
| 87 |
-
building_new =
|
| 88 |
|
| 89 |
st.markdown('Parking Space near Building:')
|
| 90 |
building_most_recent_prediction = building_new[['x', 'y', 'z']]
|
|
|
|
| 78 |
|
| 79 |
# Function to loading the feature group with latest data for building as a dataset
|
| 80 |
@st.cache_data()
|
| 81 |
+
def retrieve_building(feature_group=api_building_newest_fg):
|
| 82 |
+
api_building_newest_fg = feature_group.select(["time", "x", "y", "z"])
|
| 83 |
+
df_building = api_building_newest_fg.read()
|
| 84 |
+
return df_building
|
| 85 |
|
| 86 |
# Retrieving building data
|
| 87 |
+
building_new = retrieve_building()
|
| 88 |
|
| 89 |
st.markdown('Parking Space near Building:')
|
| 90 |
building_most_recent_prediction = building_new[['x', 'y', 'z']]
|