Spaces:
Sleeping
Sleeping
fixed syntax
Browse files
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
|
| 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,
|