Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,21 +66,22 @@ with tab1:
|
|
| 66 |
# Function to loading the feature group with latest data for building as a dataset
|
| 67 |
@st.cache_data()
|
| 68 |
def retrieve_building(feature_group=new_building_fg):
|
| 69 |
-
new_building_fg = feature_group.select(
|
| 70 |
df_building_new = new_building_fg.read(read_options={"use_hive": True})
|
| 71 |
return df_building_new
|
| 72 |
|
| 73 |
# Retrieving building data
|
| 74 |
building_new = retrieve_building()
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
building_new['Status']
|
| 81 |
-
building_new
|
| 82 |
-
building_new = building_new.
|
| 83 |
-
|
|
|
|
| 84 |
|
| 85 |
with col2:
|
| 86 |
st.subheader("Parking place near bikelane:")
|
|
|
|
| 66 |
# Function to loading the feature group with latest data for building as a dataset
|
| 67 |
@st.cache_data()
|
| 68 |
def retrieve_building(feature_group=new_building_fg):
|
| 69 |
+
new_building_fg = feature_group.select.all()
|
| 70 |
df_building_new = new_building_fg.read(read_options={"use_hive": True})
|
| 71 |
return df_building_new
|
| 72 |
|
| 73 |
# Retrieving building data
|
| 74 |
building_new = retrieve_building()
|
| 75 |
+
st.dataframe(building_new.tail(5))
|
| 76 |
+
|
| 77 |
+
## Making the predictions and getting the latest data
|
| 78 |
+
#building_mag_most_recent_prediction = building_new[['x', 'y', 'z', 'temperature', 'et0_fao_evapotranspiration']]
|
| 79 |
+
#building_mag_most_recent_prediction_mag = building_mag_hist_model.predict(building_mag_most_recent_prediction)
|
| 80 |
+
#building_new['Status'] = building_mag_most_recent_prediction
|
| 81 |
+
#building_new['Status'].replace(['detection', 'no_detection'], ['Vehicle detected', 'No vehicle detected'], inplace=True)
|
| 82 |
+
#building_new = building_new.rename(columns={'time': 'Time'})
|
| 83 |
+
#building_new = building_new.set_index(['Time'])
|
| 84 |
+
#st.dataframe(building_new[['Status']].tail(3))
|
| 85 |
|
| 86 |
with col2:
|
| 87 |
st.subheader("Parking place near bikelane:")
|