Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def get_weather(city: str) -> str:
|
|
| 12 |
"""Fetches current weather for a given city using wttr.in.
|
| 13 |
|
| 14 |
Args:
|
| 15 |
-
city
|
| 16 |
|
| 17 |
Returns:
|
| 18 |
str: A string containing weather details such as temperature, humidity, and wind speed.
|
|
@@ -32,7 +32,7 @@ def get_air_quality(city: str) -> str:
|
|
| 32 |
"""Fetches air quality index (AQI) for a specified city using waqi.info.
|
| 33 |
|
| 34 |
Args:
|
| 35 |
-
city
|
| 36 |
|
| 37 |
Returns:
|
| 38 |
str: The AQI value along with air quality status.
|
|
@@ -52,7 +52,7 @@ def get_local_time(city: str) -> str:
|
|
| 52 |
"""Fetches the current local time for a specified city.
|
| 53 |
|
| 54 |
Args:
|
| 55 |
-
city
|
| 56 |
|
| 57 |
Returns:
|
| 58 |
str: The current local time formatted as YYYY-MM-DD HH:MM:SS.
|
|
@@ -70,7 +70,7 @@ def get_top_restaurants(city: str) -> str:
|
|
| 70 |
"""Finds the top 5 restaurants in a specified city using DuckDuckGo search.
|
| 71 |
|
| 72 |
Args:
|
| 73 |
-
city
|
| 74 |
|
| 75 |
Returns:
|
| 76 |
str: A list of the top 5 restaurants including names and website links.
|
|
|
|
| 12 |
"""Fetches current weather for a given city using wttr.in.
|
| 13 |
|
| 14 |
Args:
|
| 15 |
+
city: The name of the city for which weather information is needed.
|
| 16 |
|
| 17 |
Returns:
|
| 18 |
str: A string containing weather details such as temperature, humidity, and wind speed.
|
|
|
|
| 32 |
"""Fetches air quality index (AQI) for a specified city using waqi.info.
|
| 33 |
|
| 34 |
Args:
|
| 35 |
+
city: The name of the city for which AQI information is needed.
|
| 36 |
|
| 37 |
Returns:
|
| 38 |
str: The AQI value along with air quality status.
|
|
|
|
| 52 |
"""Fetches the current local time for a specified city.
|
| 53 |
|
| 54 |
Args:
|
| 55 |
+
city: The name of the city to fetch the local time for.
|
| 56 |
|
| 57 |
Returns:
|
| 58 |
str: The current local time formatted as YYYY-MM-DD HH:MM:SS.
|
|
|
|
| 70 |
"""Finds the top 5 restaurants in a specified city using DuckDuckGo search.
|
| 71 |
|
| 72 |
Args:
|
| 73 |
+
city: The name of the city where restaurants are being searched.
|
| 74 |
|
| 75 |
Returns:
|
| 76 |
str: A list of the top 5 restaurants including names and website links.
|