Nonin commited on
Commit
47af193
·
verified ·
1 Parent(s): 2630109

Update app.py

Browse files

Correct tools ?

Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -84,7 +84,8 @@ def company_news_sentiment(company_name: str, top_k: int) -> str:
84
 
85
 
86
  final_answer = FinalAnswerTool()
87
-
 
88
  # 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:
89
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
90
 
@@ -104,7 +105,7 @@ with open("prompts.yaml", 'r') as stream:
104
 
105
  agent = CodeAgent(
106
  model=model,
107
- tools=[final_answer,company_news_sentiment], ## add your tools here (don't remove final answer)
108
  max_steps=6,
109
  verbosity_level=1,
110
  grammar=None,
 
84
 
85
 
86
  final_answer = FinalAnswerTool()
87
+ company_news_sentiment=company_news_sentiment()
88
+ current_time_zone = get_current_time_in_timezone()
89
  # 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:
90
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
91
 
 
105
 
106
  agent = CodeAgent(
107
  model=model,
108
+ tools=[final_answer,company_news_sentiment,current_time_zone], ## add your tools here (don't remove final answer)
109
  max_steps=6,
110
  verbosity_level=1,
111
  grammar=None,