dimun commited on
Commit
10acbab
·
verified ·
1 Parent(s): 9aff27e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,6 +9,7 @@ from Gradio_UI import GradioUI
9
 
10
  import http.client
11
 
 
12
  def fetch_cat_fact() -> str:
13
  """
14
  Fetches a random cat fact from 'https://catfact.ninja/fact' using an HTTP GET request.
@@ -64,7 +65,7 @@ with open("prompts.yaml", 'r') as stream:
64
 
65
  agent = CodeAgent(
66
  model=model,
67
- tools=[final_answer], ## add your tools here (don't remove final answer)
68
  max_steps=6,
69
  verbosity_level=1,
70
  grammar=None,
 
9
 
10
  import http.client
11
 
12
+ @tool
13
  def fetch_cat_fact() -> str:
14
  """
15
  Fetches a random cat fact from 'https://catfact.ninja/fact' using an HTTP GET request.
 
65
 
66
  agent = CodeAgent(
67
  model=model,
68
+ tools=[final_answer, fetch_cat_fact], ## add your tools here (don't remove final answer)
69
  max_steps=6,
70
  verbosity_level=1,
71
  grammar=None,