Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
| 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
|