Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,7 +94,7 @@ with tab1:
|
|
| 94 |
|
| 95 |
# Making the predictions and getting the latest data
|
| 96 |
building_mag_most_recent_prediction = building_mag_prediction_data[['x', 'y', 'z', 'temperature', 'et0_fao_evapotranspiration']]
|
| 97 |
-
|
| 98 |
building_mag_prediction_data['Status'] = building_mag_most_recent_prediction
|
| 99 |
building_mag_prediction_data['Status'].replace(['detection', 'no_detection'], ['Vehicle detected', 'No vehicle detected'], inplace=True)
|
| 100 |
building_mag_prediction_data = building_mag_prediction_data.rename(columns={'time': 'Time'})
|
|
|
|
| 94 |
|
| 95 |
# Making the predictions and getting the latest data
|
| 96 |
building_mag_most_recent_prediction = building_mag_prediction_data[['x', 'y', 'z', 'temperature', 'et0_fao_evapotranspiration']]
|
| 97 |
+
building_mag_most_recent_prediction = building_mag_hist_model.predict(building_mag_most_recent_prediction)
|
| 98 |
building_mag_prediction_data['Status'] = building_mag_most_recent_prediction
|
| 99 |
building_mag_prediction_data['Status'].replace(['detection', 'no_detection'], ['Vehicle detected', 'No vehicle detected'], inplace=True)
|
| 100 |
building_mag_prediction_data = building_mag_prediction_data.rename(columns={'time': 'Time'})
|