Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def get_weather(city: str) -> str:
|
|
| 33 |
Fetches the current weather for a given city.
|
| 34 |
|
| 35 |
Args:
|
| 36 |
-
city (str):
|
| 37 |
|
| 38 |
Returns:
|
| 39 |
str: Weather description and temperature.
|
|
@@ -44,6 +44,7 @@ def get_weather(city: str) -> str:
|
|
| 44 |
return response.text
|
| 45 |
return "Unable to retrieve weather information."
|
| 46 |
|
|
|
|
| 47 |
# Tool: Fetch currency exchange rate
|
| 48 |
@tool
|
| 49 |
def get_exchange_rate(base_currency: str, target_currency: str) -> str:
|
|
|
|
| 33 |
Fetches the current weather for a given city.
|
| 34 |
|
| 35 |
Args:
|
| 36 |
+
city (str): The name of the city for which to fetch the weather.
|
| 37 |
|
| 38 |
Returns:
|
| 39 |
str: Weather description and temperature.
|
|
|
|
| 44 |
return response.text
|
| 45 |
return "Unable to retrieve weather information."
|
| 46 |
|
| 47 |
+
|
| 48 |
# Tool: Fetch currency exchange rate
|
| 49 |
@tool
|
| 50 |
def get_exchange_rate(base_currency: str, target_currency: str) -> str:
|