Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def main():
|
|
| 30 |
'accommodation_type_Resort': 0,
|
| 31 |
'accommodation_type_Vacation rental': 0,
|
| 32 |
'accommodation_type_Villa': 0
|
| 33 |
-
})
|
| 34 |
|
| 35 |
data_tp = pd.DataFrame({
|
| 36 |
'duration_(days)': day,
|
|
@@ -40,7 +40,7 @@ def main():
|
|
| 40 |
'transportation_type_Flight': 0,
|
| 41 |
'transportation_type_Subway': 0,
|
| 42 |
'transportation_type_Train': 0
|
| 43 |
-
})
|
| 44 |
|
| 45 |
# Set the selected transportation type to 1
|
| 46 |
data_tp[tp_type] = 1
|
|
|
|
| 30 |
'accommodation_type_Resort': 0,
|
| 31 |
'accommodation_type_Vacation rental': 0,
|
| 32 |
'accommodation_type_Villa': 0
|
| 33 |
+
}, index=[0])
|
| 34 |
|
| 35 |
data_tp = pd.DataFrame({
|
| 36 |
'duration_(days)': day,
|
|
|
|
| 40 |
'transportation_type_Flight': 0,
|
| 41 |
'transportation_type_Subway': 0,
|
| 42 |
'transportation_type_Train': 0
|
| 43 |
+
}, index=[0])
|
| 44 |
|
| 45 |
# Set the selected transportation type to 1
|
| 46 |
data_tp[tp_type] = 1
|