Repcak00 commited on
Commit
5d79361
·
verified ·
1 Parent(s): c4eaf62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ from Gradio_UI import GradioUI
13
  @tool
14
  def get_location()-> str: #it's import to specify the return type
15
  #Keep this format for the description / args / args description but feel free to modify the tool
16
- """A tool that checks the location of the user and returns a string with a city from the user is logging."""
17
  g = geocoder.ip('me')
18
  return g.city
19
 
@@ -54,7 +54,7 @@ with open("prompts.yaml", 'r') as stream:
54
 
55
  agent = CodeAgent(
56
  model=model,
57
- tools=[final_answer, image_generation_tool, get_current_time_in_timezone, search_tool], ## add your tools here (don't remove final answer)
58
  max_steps=6,
59
  verbosity_level=1,
60
  grammar=None,
 
13
  @tool
14
  def get_location()-> str: #it's import to specify the return type
15
  #Keep this format for the description / args / args description but feel free to modify the tool
16
+ """A tool that checks the location of the user and returns a string with a city."""
17
  g = geocoder.ip('me')
18
  return g.city
19
 
 
54
 
55
  agent = CodeAgent(
56
  model=model,
57
+ tools=[final_answer, image_generation_tool, get_current_time_in_timezone, search_tool, get_location], ## add your tools here (don't remove final answer)
58
  max_steps=6,
59
  verbosity_level=1,
60
  grammar=None,