A-Celsius commited on
Commit
cfb14a1
·
1 Parent(s): 72d2862

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
- import pickle
2
  import gradio as gr
3
  from datetime import datetime, timedelta, timezone
4
 
5
- model = pickle.load(open('model.pkl','rb'))
6
 
7
  def preprocess_city(selected_city):
8
  # Map the selected city to its one-hot encoded representation
 
1
+ import pickle, joblib
2
  import gradio as gr
3
  from datetime import datetime, timedelta, timezone
4
 
5
+ model = joblib.load('model.pkl')
6
 
7
  def preprocess_city(selected_city):
8
  # Map the selected city to its one-hot encoded representation