Spaces:
Runtime error
Runtime error
Download src/tasks/topic_researcher_agent_task.py from Samagra07/LinkedIn_Post_Generator: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/spaces/Samagra07/LinkedIn_Post_Generator/resolve/main/src/tasks/topic_researcher_agent_task.py
- Command line
-
hf download hf://spaces/Samagra07/LinkedIn_Post_Generator/src/tasks/topic_researcher_agent_task.py
-
curl -L -o topic_researcher_agent_task.py https://huggingface.co/spaces/Samagra07/LinkedIn_Post_Generator/resolve/main/src/tasks/topic_researcher_agent_task.py
592 Bytes
| import os | |
| from crewai import Task | |
| from dotenv import load_dotenv | |
| from crewai_tools import SerperDevTool | |
| from src.agents.topic_researcher_agent import topic_researcher_agent | |
| load_dotenv() | |
| os.environ['SERPER_API_KEY'] = os.getenv("SERPER_API_KEY") | |
| tools = SerperDevTool() | |
| topic_researcher_agent_task = Task( | |
| description="Identify and analyze only 1 content or article on the {topic} from the web.", | |
| expected_output="A complete word-by-word report on the most relevant post or article found on the topic {topic}.", | |
| agent=topic_researcher_agent, | |
| tools=[tools] | |
| ) |