samdotslash commited on
Commit
8df61fc
·
verified ·
1 Parent(s): 44399b5

fixed syntax

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -17,6 +17,8 @@ def get_random_integer(Start_num:int, End_num:int)-> str: #it's import to specif
17
  End_num: The end of the range for a random number (e.g., "10")
18
  """
19
  try:
 
 
20
  # Calling a rand function
21
  rand_num = random.randint( Start_num, End_num )
22
 
@@ -63,7 +65,7 @@ with open("prompts.yaml", 'r') as stream:
63
 
64
  agent = CodeAgent(
65
  model=model,
66
- tools=[final_answer],[get_current_time_in_timezone], ## add your tools here (don't remove final answer)
67
  max_steps=6,
68
  verbosity_level=1,
69
  grammar=None,
 
17
  End_num: The end of the range for a random number (e.g., "10")
18
  """
19
  try:
20
+
21
+ import random
22
  # Calling a rand function
23
  rand_num = random.randint( Start_num, End_num )
24
 
 
65
 
66
  agent = CodeAgent(
67
  model=model,
68
+ tools=[final_answer, get_current_time_in_timezone, get_random_integer], ## add your tools here (don't remove final answer)
69
  max_steps=6,
70
  verbosity_level=1,
71
  grammar=None,