Spaces:
Sleeping
Sleeping
Update app.py
Browse filesrevert tools init
app.py
CHANGED
|
@@ -84,8 +84,7 @@ def company_news_sentiment(company_name: str, top_k: int) -> str:
|
|
| 84 |
|
| 85 |
|
| 86 |
final_answer = FinalAnswerTool()
|
| 87 |
-
|
| 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,7 +104,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 105 |
|
| 106 |
agent = CodeAgent(
|
| 107 |
model=model,
|
| 108 |
-
tools=[
|
| 109 |
max_steps=6,
|
| 110 |
verbosity_level=1,
|
| 111 |
grammar=None,
|
|
|
|
| 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 |
|
| 105 |
agent = CodeAgent(
|
| 106 |
model=model,
|
| 107 |
+
tools=[company_news_sentiment,current_time_zone,final_answer], ## add your tools here (don't remove final answer)
|
| 108 |
max_steps=6,
|
| 109 |
verbosity_level=1,
|
| 110 |
grammar=None,
|