Spaces:
Sleeping
Sleeping
Upload recommendations_server.py with huggingface_hub
Browse files
recommendations_server.py
CHANGED
|
@@ -337,15 +337,17 @@ def get_destination_recommendations(
|
|
| 337 |
trip_days: int = 7
|
| 338 |
) -> str:
|
| 339 |
"""
|
| 340 |
-
Get smart destination recommendations
|
|
|
|
|
|
|
| 341 |
|
| 342 |
Args:
|
| 343 |
-
origin: Departure city (
|
| 344 |
-
budget: "budget", "moderate", or "luxury"
|
| 345 |
travel_month: Month number (1-12), 0 for flexible
|
| 346 |
interests: Comma-separated interests like "beach,culture,food"
|
| 347 |
-
travelers: Number of travelers
|
| 348 |
-
trip_days: Trip duration in days
|
| 349 |
"""
|
| 350 |
|
| 351 |
region = get_region_from_origin(origin) if origin else "europe"
|
|
|
|
| 337 |
trip_days: int = 7
|
| 338 |
) -> str:
|
| 339 |
"""
|
| 340 |
+
Get smart destination recommendations when user doesn't know where to go.
|
| 341 |
+
Only needs: origin city, number of travelers, and trip duration.
|
| 342 |
+
Everything else is optional and will be used to refine recommendations.
|
| 343 |
|
| 344 |
Args:
|
| 345 |
+
origin: Departure city (required for flight estimates)
|
| 346 |
+
budget: "budget", "moderate", or "luxury" (default: moderate)
|
| 347 |
travel_month: Month number (1-12), 0 for flexible
|
| 348 |
interests: Comma-separated interests like "beach,culture,food"
|
| 349 |
+
travelers: Number of travelers (default: 2)
|
| 350 |
+
trip_days: Trip duration in days (default: 7)
|
| 351 |
"""
|
| 352 |
|
| 353 |
region = get_region_from_origin(origin) if origin else "europe"
|