AlexxRubio commited on
Commit
be017d5
·
verified ·
1 Parent(s): 4f14ba2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -8,6 +8,11 @@ from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
 
 
 
 
 
11
  @tool
12
  def get_weather_at_location(location:str)-> str: #it's import to specify the return type
13
  #Keep this format for the description / args / args description but feel free to modify the tool
 
8
  from Gradio_UI import GradioUI
9
 
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 weather in Houston and the Time in America/Chicago?")
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