Spaces:
Sleeping
Sleeping
Correct tab error and explicit local time in query
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def find_open_restaurants_by_location(location: str,
|
|
| 32 |
local_time = datetime.datetime.now(tz).strftime("%H:%M")
|
| 33 |
|
| 34 |
# Build query dynamically based on provided inputs
|
| 35 |
-
query_parts = [f'restaurants open in "{location}"']
|
| 36 |
if cuisine:
|
| 37 |
query_parts.append(f"serving {cuisine} cuisine")
|
| 38 |
if rating:
|
|
@@ -52,8 +52,7 @@ def find_open_restaurants_by_location(location: str,
|
|
| 52 |
else:
|
| 53 |
results_str = str(search_results) # Convert to string if it's not a list
|
| 54 |
|
| 55 |
-
|
| 56 |
-
return f"🍽️ Open restaurants in {location} at {local_time}:\n\n{results_str}"
|
| 57 |
|
| 58 |
except Exception as e:
|
| 59 |
return f"❌ Error finding restaurants: {str(e)}"
|
|
|
|
| 32 |
local_time = datetime.datetime.now(tz).strftime("%H:%M")
|
| 33 |
|
| 34 |
# Build query dynamically based on provided inputs
|
| 35 |
+
query_parts = [f'restaurants open in "{location}"" at {local_time}']
|
| 36 |
if cuisine:
|
| 37 |
query_parts.append(f"serving {cuisine} cuisine")
|
| 38 |
if rating:
|
|
|
|
| 52 |
else:
|
| 53 |
results_str = str(search_results) # Convert to string if it's not a list
|
| 54 |
|
| 55 |
+
return f"🍽️ Open restaurants in {location} at {local_time}:\n\n{results_str}"
|
|
|
|
| 56 |
|
| 57 |
except Exception as e:
|
| 58 |
return f"❌ Error finding restaurants: {str(e)}"
|