IbraahimLab commited on
Commit
7129ba9
·
verified ·
1 Parent(s): 5d0c63b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -3,8 +3,7 @@ import pickle
3
  import numpy as np
4
 
5
  # Load the trained model
6
- with open("random_forest_model.pkl", "rb") as file:
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):