Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,9 +10,11 @@ from Gradio_UI import GradioUI
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
# I made a weather tool based on a location city using the requests import to get the weather at a given city
|
| 12 |
# It works but for some reason if you ask it to do 2 things
|
| 13 |
-
# (eg. "Can you tell me the
|
| 14 |
# It will successfully return the time but fail to return the weather and I do not know why
|
| 15 |
|
|
|
|
|
|
|
| 16 |
@tool
|
| 17 |
def get_weather_at_location(location:str)-> str: #it's import to specify the return type
|
| 18 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
|
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
# I made a weather tool based on a location city using the requests import to get the weather at a given city
|
| 12 |
# It works but for some reason if you ask it to do 2 things
|
| 13 |
+
# (eg. "Can you tell me the Time in America/Chicago and the weather in Houston?")
|
| 14 |
# It will successfully return the time but fail to return the weather and I do not know why
|
| 15 |
|
| 16 |
+
# edit, if you ask for the weather before asking for the time, I'm not sure if this is an LLM issue or a code issue
|
| 17 |
+
|
| 18 |
@tool
|
| 19 |
def get_weather_at_location(location:str)-> str: #it's import to specify the return type
|
| 20 |
#Keep this format for the description / args / args description but feel free to modify the tool
|