Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ model = joblib.load('model.pkl')
|
|
| 7 |
def preprocess_city(selected_city):
|
| 8 |
# Map the selected city to its one-hot encoded representation
|
| 9 |
city_mapping = {
|
| 10 |
-
'Hyderabad' :
|
| 11 |
'Indore': [1, 0, 0, 0, 0, 0, 0],
|
| 12 |
'Jaipur': [0, 1, 0, 0, 0, 0, 0],
|
| 13 |
'Mahabaleshwar': [0, 0, 1, 0, 0, 0, 0],
|
|
|
|
| 7 |
def preprocess_city(selected_city):
|
| 8 |
# Map the selected city to its one-hot encoded representation
|
| 9 |
city_mapping = {
|
| 10 |
+
'Hyderabad' : [1, 0, 0, 0, 0, 0, 0],
|
| 11 |
'Indore': [1, 0, 0, 0, 0, 0, 0],
|
| 12 |
'Jaipur': [0, 1, 0, 0, 0, 0, 0],
|
| 13 |
'Mahabaleshwar': [0, 0, 1, 0, 0, 0, 0],
|