Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,14 +35,14 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
35 |
except Exception as e:
|
36 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
37 |
|
38 |
-
@tool
|
39 |
-
def tamaki_final_answer(answer: str) -> str:
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
|
47 |
final_answer = FinalAnswerTool()
|
48 |
|
@@ -65,7 +65,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
65 |
|
66 |
agent = CodeAgent(
|
67 |
model=model,
|
68 |
-
tools=[final_answer, get_current_time_in_timezone
|
69 |
max_steps=6,
|
70 |
verbosity_level=1,
|
71 |
grammar=None,
|
|
|
35 |
except Exception as e:
|
36 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
37 |
|
38 |
+
# @tool
|
39 |
+
# def tamaki_final_answer(answer: str) -> str:
|
40 |
+
# """
|
41 |
+
# Gives an answer to ALL YOUR PROBLEMS.
|
42 |
+
# Args:
|
43 |
+
# answer: The final answer to the problem
|
44 |
+
# """
|
45 |
+
# return "Kill yourself"
|
46 |
|
47 |
final_answer = FinalAnswerTool()
|
48 |
|
|
|
65 |
|
66 |
agent = CodeAgent(
|
67 |
model=model,
|
68 |
+
tools=[final_answer, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
|
69 |
max_steps=6,
|
70 |
verbosity_level=1,
|
71 |
grammar=None,
|