Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import pickle
|
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
# Load the trained model
|
| 6 |
-
|
| 7 |
|
| 8 |
# Prediction function
|
| 9 |
def predict_rainfall(temperature, humidity, cloud, sunshine, wind_direction):
|
|
|
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
# Load the trained model
|
| 6 |
+
model = joblib.load("random_forest_model.pkl")
|
| 7 |
|
| 8 |
# Prediction function
|
| 9 |
def predict_rainfall(temperature, humidity, cloud, sunshine, wind_direction):
|