Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,13 +12,13 @@ from Gradio_UI import GradioUI
|
|
| 12 |
|
| 13 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 14 |
@tool
|
| 15 |
-
def get_current_weather(arg1: str)-> str: #it's import to specify the return type
|
| 16 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 17 |
"""A tool that fetches current weather at specified location
|
| 18 |
Args:
|
| 19 |
arg1: city
|
| 20 |
"""
|
| 21 |
-
|
| 22 |
async with python_weather.Client(unit=python_weather.METRIC) as client:
|
| 23 |
# fetch a weather forecast from a city
|
| 24 |
weather = await client.get(arg1)
|
|
|
|
| 12 |
|
| 13 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 14 |
@tool
|
| 15 |
+
async def get_current_weather(arg1: str)-> str: #it's import to specify the return type
|
| 16 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 17 |
"""A tool that fetches current weather at specified location
|
| 18 |
Args:
|
| 19 |
arg1: city
|
| 20 |
"""
|
| 21 |
+
|
| 22 |
async with python_weather.Client(unit=python_weather.METRIC) as client:
|
| 23 |
# fetch a weather forecast from a city
|
| 24 |
weather = await client.get(arg1)
|