saisravanthi8333 commited on
Commit
bb0722a
·
verified ·
1 Parent(s): 8c5c24b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -54,16 +54,12 @@ 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,
62
- planning_interval=None,
63
- name=None,
64
- description=None,
65
- prompt_templates=prompt_templates
66
  )
67
 
68
-
69
  GradioUI(agent).launch()
 
54
  prompt_templates = yaml.safe_load(stream)
55
 
56
  agent = CodeAgent(
57
+ tools=[...],
58
+ model=...,
59
+ name="my_huggingface_agent", # ✅ valid Python identifier
60
+ instructions="You are a helpful AI agent that can answer questions and use tools.",
61
+ verbosity_level=1
62
+
 
 
 
63
  )
64
 
 
65
  GradioUI(agent).launch()