Spaces:
Runtime error
Runtime error
Update tools.py
Browse files
tools.py
CHANGED
@@ -283,6 +283,7 @@ class Tools:
|
|
283 |
- place_names (list): The name of the establishment. This should be a physical location name. You can provide multiple inputs.
|
284 |
- location (str) : The location where the restaurant is located. Optional argument.
|
285 |
"""
|
|
|
286 |
all_reviews = []
|
287 |
for place_name in place_names:
|
288 |
if isinstance(place_name, str):
|
@@ -291,7 +292,6 @@ class Tools:
|
|
291 |
# We just use the first one.
|
292 |
location = location[0]
|
293 |
elif location and isinstance(location, list):
|
294 |
-
print (f"Location found: {location}")
|
295 |
# No matching spaces found in the API, len of 0
|
296 |
if len(location) == 0:
|
297 |
location = None
|
|
|
283 |
- place_names (list): The name of the establishment. This should be a physical location name. You can provide multiple inputs.
|
284 |
- location (str) : The location where the restaurant is located. Optional argument.
|
285 |
"""
|
286 |
+
print (f"Location found: {location}")
|
287 |
all_reviews = []
|
288 |
for place_name in place_names:
|
289 |
if isinstance(place_name, str):
|
|
|
292 |
# We just use the first one.
|
293 |
location = location[0]
|
294 |
elif location and isinstance(location, list):
|
|
|
295 |
# No matching spaces found in the API, len of 0
|
296 |
if len(location) == 0:
|
297 |
location = None
|