Spaces:
Runtime error
Runtime error
Download SentimentAnalysisAgent/SentimentAnalysisAgent.py from varun324242/agent1: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/spaces/varun324242/agent1/resolve/main/SentimentAnalysisAgent/SentimentAnalysisAgent.py
- Command line
-
hf download hf://spaces/varun324242/agent1/SentimentAnalysisAgent/SentimentAnalysisAgent.py
-
curl -L -o SentimentAnalysisAgent.py https://huggingface.co/spaces/varun324242/agent1/resolve/main/SentimentAnalysisAgent/SentimentAnalysisAgent.py
683 Bytes
| from agency_swarm.agents import Agent | |
| from agency_swarm.tools import CodeInterpreter | |
| class SentimentAnalysisAgent(Agent): | |
| def __init__(self): | |
| super().__init__( | |
| name="SentimentAnalysisAgent", | |
| description="This agent processes news and social media sentiment using NLP libraries like NLTK and spaCy.", | |
| instructions="./instructions.md", | |
| files_folder="./files", | |
| schemas_folder="./schemas", | |
| tools=[CodeInterpreter], | |
| tools_folder="./tools", | |
| temperature=0.3, | |
| max_prompt_tokens=25000, | |
| ) | |
| def response_validator(self, message): | |
| return message | |