acharya-jyu commited on
Commit
e7e31f4
·
verified ·
1 Parent(s): 6d0a436

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -55,16 +55,19 @@ with open("prompts.yaml", 'r') as stream:
55
 
56
  agent = CodeAgent(
57
  model=model,
58
- tools=[final_answer,get_current_time_in_timezone,image_generation_tool], ## add your tools here (don't remove final answer)
 
 
 
59
  additional_authorized_imports=["datetime"],
60
  max_steps=6,
61
  verbosity_level=1,
62
  grammar=None,
63
  planning_interval=None,
64
- name=None,
65
- description=None,
66
  prompt_templates=prompt_templates
67
  )
68
 
69
-
70
  GradioUI(agent).launch()
 
55
 
56
  agent = CodeAgent(
57
  model=model,
58
+ tools=[
59
+ final_answer,
60
+ get_current_time_in_timezone,
61
+ image_generation_tool], ## add your tools here (don't remove final answer)
62
  additional_authorized_imports=["datetime"],
63
  max_steps=6,
64
  verbosity_level=1,
65
  grammar=None,
66
  planning_interval=None,
67
+ name="MyFirstAgent",
68
+ description="Can create an image or give you weather forecast.",
69
  prompt_templates=prompt_templates
70
  )
71
 
72
+ #agent.run("Draw me a cat drinking whiskey, cartoon style.")
73
  GradioUI(agent).launch()