Alfiebreakthrough commited on
Commit
bbb4d58
·
verified ·
1 Parent(s): 8c5c24b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -52,10 +52,18 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
52
 
53
  with open("prompts.yaml", 'r') as stream:
54
  prompt_templates = yaml.safe_load(stream)
 
 
 
 
 
 
 
 
55
 
56
  agent = CodeAgent(
57
  model=model,
58
- tools=[final_answer], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
 
52
 
53
  with open("prompts.yaml", 'r') as stream:
54
  prompt_templates = yaml.safe_load(stream)
55
+
56
+ def say_hello(name: str) -> str
57
+ """Say hello to someone.
58
+ Args:
59
+ name: the person's name
60
+ """
61
+ return f"Hello {name}, welcome to this Hugging Face agent"
62
+
63
 
64
  agent = CodeAgent(
65
  model=model,
66
+ tools=[final_answer, say_hello], ## add your tools here (don't remove final answer)
67
  max_steps=6,
68
  verbosity_level=1,
69
  grammar=None,