Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,9 +33,9 @@ def my_custom_tool(city1: str, city2: str) -> str:
|
|
| 33 |
A string listing the top 5 sightseeing locations in each city.
|
| 34 |
"""
|
| 35 |
# Search for top 5 sightseeing locations in city1
|
| 36 |
-
results_city1 = search_model(f"top 5 sightseeing locations in {city1}")
|
| 37 |
# Search for top 5 sightseeing locations in city2
|
| 38 |
-
results_city2 = search_model(f"top 5 sightseeing locations in {city2}")
|
| 39 |
|
| 40 |
# Format the results as a string
|
| 41 |
output = f"Top 5 sightseeing locations in {city1}:\n"
|
|
|
|
| 33 |
A string listing the top 5 sightseeing locations in each city.
|
| 34 |
"""
|
| 35 |
# Search for top 5 sightseeing locations in city1
|
| 36 |
+
results_city1 = search_model(f"top 5 sightseeing locations in {city1}").split("\n")
|
| 37 |
# Search for top 5 sightseeing locations in city2
|
| 38 |
+
results_city2 = search_model(f"top 5 sightseeing locations in {city2}").split("\n")
|
| 39 |
|
| 40 |
# Format the results as a string
|
| 41 |
output = f"Top 5 sightseeing locations in {city1}:\n"
|