Spaces:
Runtime error
Runtime error
just checking timezone
Browse files
app.py
CHANGED
|
@@ -8,14 +8,14 @@ from tools.final_answer import FinalAnswerTool
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
-
@tool
|
| 12 |
-
def convert_km_to_miles(km: float) -> str:
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
|
| 20 |
|
| 21 |
# @tool
|
|
@@ -110,7 +110,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 110 |
|
| 111 |
agent = CodeAgent(
|
| 112 |
model=model,
|
| 113 |
-
tools=[final_answer,
|
| 114 |
max_steps=6,
|
| 115 |
verbosity_level=1,
|
| 116 |
grammar=None,
|
|
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
+
# @tool
|
| 12 |
+
# def convert_km_to_miles(km: float) -> str:
|
| 13 |
+
# """Convert a distance from kilometers to miles.
|
| 14 |
+
# Args:
|
| 15 |
+
# km : The distance in kilometers to be converted (e.g., 6).
|
| 16 |
+
# """
|
| 17 |
+
# miles = km * 0.621371
|
| 18 |
+
# return f"{km} km is equal to {miles:.2f} miles."
|
| 19 |
|
| 20 |
|
| 21 |
# @tool
|
|
|
|
| 110 |
|
| 111 |
agent = CodeAgent(
|
| 112 |
model=model,
|
| 113 |
+
tools=[final_answer, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
|
| 114 |
max_steps=6,
|
| 115 |
verbosity_level=1,
|
| 116 |
grammar=None,
|