Spaces:
Runtime error
Runtime error
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -49,7 +49,7 @@ class Tools:
|
|
| 49 |
region = location_data["regionName"]
|
| 50 |
country = location_data["countryCode"]
|
| 51 |
location = f"{city}, {region}, {country}"
|
| 52 |
-
return location
|
| 53 |
|
| 54 |
def _get_current_location_information(self) -> Dict[str, Any] | None:
|
| 55 |
default_response = {
|
|
@@ -271,7 +271,7 @@ class Tools:
|
|
| 271 |
|
| 272 |
- user_query (str): The input string that is out of domain.
|
| 273 |
"""
|
| 274 |
-
return "This query is not answerable. Please provide queries regarding locations, reviews, or recommendations!"
|
| 275 |
|
| 276 |
def get_some_reviews(self, place_names: list, location: str = None):
|
| 277 |
"""
|
|
|
|
| 49 |
region = location_data["regionName"]
|
| 50 |
country = location_data["countryCode"]
|
| 51 |
location = f"{city}, {region}, {country}"
|
| 52 |
+
return [location]
|
| 53 |
|
| 54 |
def _get_current_location_information(self) -> Dict[str, Any] | None:
|
| 55 |
default_response = {
|
|
|
|
| 271 |
|
| 272 |
- user_query (str): The input string that is out of domain.
|
| 273 |
"""
|
| 274 |
+
return ["This query is not answerable. Please provide queries regarding locations, reviews, or recommendations!"]
|
| 275 |
|
| 276 |
def get_some_reviews(self, place_names: list, location: str = None):
|
| 277 |
"""
|