SaraM2727 commited on
Commit
4d81a6e
·
verified ·
1 Parent(s): 0217e61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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): Name of the city.
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: