Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|
| 14 |
-
|
| 15 |
-
|
| 16 |
Args:
|
| 17 |
-
|
| 18 |
-
|
| 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")
|