Arcpolar commited on
Commit
4ffb6b0
·
verified ·
1 Parent(s): e1d40a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
35
 
36
 
37
  final_answer = FinalAnswerTool()
38
- get_current_time_in_timezone = get_current_time_in_timezone()
39
  model = HfApiModel(
40
  #max_tokens=2096,
41
  max_tokens=2046,
@@ -54,7 +54,7 @@ with open("prompts.yaml", 'r') as stream:
54
 
55
  agent = CodeAgent(
56
  model=model,
57
- tools=[final_answer, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
58
  max_steps=6,
59
  verbosity_level=1,
60
  grammar=None,
 
35
 
36
 
37
  final_answer = FinalAnswerTool()
38
+ #get_current_time_in_timezone = get_current_time_in_timezone()
39
  model = HfApiModel(
40
  #max_tokens=2096,
41
  max_tokens=2046,
 
54
 
55
  agent = CodeAgent(
56
  model=model,
57
+ tools=[final_answer, get_current_time_in_timezone(timezone: str)], ## add your tools here (don't remove final answer)
58
  max_steps=6,
59
  verbosity_level=1,
60
  grammar=None,