Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,7 @@ import pickle
|
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
# Load the trained model
|
| 6 |
-
|
| 7 |
-
model = pickle.load(file)
|
| 8 |
|
| 9 |
# Prediction function
|
| 10 |
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):
|