jdollman commited on
Commit
fbaff8e
·
verified ·
1 Parent(s): fac1d4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -24,7 +24,6 @@ def get_joke(category: str) -> str:
24
  Args:
25
  category: A joke category, e.g. 'dad' or 'programming'.
26
  """
27
- # Here you could call an external API or just pick from a dictionary.
28
  jokes = {
29
  "dad": "Why did the scarecrow get promoted? Because he was outstanding in his field!",
30
  "programming": "Why do programmers prefer dark mode? Because light attracts bugs."
@@ -69,7 +68,7 @@ with open("prompts.yaml", 'r') as stream:
69
 
70
  agent = CodeAgent(
71
  model=model,
72
- tools=[final_answer], ## add your tools here (don't remove final answer)
73
  max_steps=6,
74
  verbosity_level=1,
75
  grammar=None,
 
24
  Args:
25
  category: A joke category, e.g. 'dad' or 'programming'.
26
  """
 
27
  jokes = {
28
  "dad": "Why did the scarecrow get promoted? Because he was outstanding in his field!",
29
  "programming": "Why do programmers prefer dark mode? Because light attracts bugs."
 
68
 
69
  agent = CodeAgent(
70
  model=model,
71
+ tools=[final_answer, get_joke], ## add your tools here (don't remove final answer)
72
  max_steps=6,
73
  verbosity_level=1,
74
  grammar=None,