johnwas commited on
Commit
bb6f6af
·
verified ·
1 Parent(s): b76d814

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -37,6 +37,8 @@ def get_current_time_in_timezone(timezone: str) -> str:
37
 
38
  final_answer = FinalAnswerTool()
39
 
 
 
40
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
41
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
42
 
@@ -56,8 +58,7 @@ with open("prompts.yaml", 'r') as stream:
56
 
57
  agent = CodeAgent(
58
  model=model,
59
- #tools=[final_answer], ## add your tools here (don't remove final answer)
60
- tools = [my_custom_tool,get_current_time_in_timezone]
61
  max_steps=6,
62
  verbosity_level=1,
63
  grammar=None,
 
37
 
38
  final_answer = FinalAnswerTool()
39
 
40
+ print(final_answer)
41
+
42
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
43
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
44
 
 
58
 
59
  agent = CodeAgent(
60
  model=model,
61
+ tools=[final_answer], ## add your tools here (don't remove final answer)
 
62
  max_steps=6,
63
  verbosity_level=1,
64
  grammar=None,