wowpixels commited on
Commit
3997ee1
·
verified ·
1 Parent(s): bc2cb90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -10,12 +10,12 @@ from Gradio_UI import GradioUI
10
 
11
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
12
  @tool
13
- def compare_weather(city1:str, city2:int)-> str: #it's import to specify the return type
14
- #Keep this format for the description / args / args description but feel free to modify the tool
15
- """Compares the weather in two cities using OpenWeather API. Returns temperature and description.
16
  Args:
17
- arg1: First city name London
18
- arg2: Second city name New York
19
  """
20
  try:
21
  api_key = os.getenv("OPENWEATHER_API_KEY")
 
10
 
11
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
12
  @tool
13
+ def compare_weather(city1: str, city2: str) -> str:
14
+ """Compares the weather in two cities using OpenWeather API.
15
+
16
  Args:
17
+ city1: The name of the first city (e.g., "London")
18
+ city2: The name of the second city (e.g., "New York")
19
  """
20
  try:
21
  api_key = os.getenv("OPENWEATHER_API_KEY")