Dannsht commited on
Commit
b4a2a2b
·
verified ·
1 Parent(s): bd86ae7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -42,6 +42,7 @@ model_id='https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud',#
42
  custom_role_conversions=None,
43
  )
44
 
 
45
 
46
  # Import tool from Hub
47
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
@@ -51,7 +52,7 @@ with open("prompts.yaml", 'r') as stream:
51
 
52
  agent = CodeAgent(
53
  model=model,
54
- tools=[final_answer], ## add your tools here (don't remove final answer)
55
  max_steps=6,
56
  verbosity_level=1,
57
  grammar=None,
 
42
  custom_role_conversions=None,
43
  )
44
 
45
+ time_zone_tool = get_current_time_in_timezone('Moscow')
46
 
47
  # Import tool from Hub
48
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
 
52
 
53
  agent = CodeAgent(
54
  model=model,
55
+ tools=[final_answer, image_generation_tool, time_zone_tool], ## add your tools here (don't remove final answer)
56
  max_steps=6,
57
  verbosity_level=1,
58
  grammar=None,