Spaces:
Runtime error
Runtime error
Download src/tasks/blog_writer_agent_task.py from Samagra07/LinkedIn_Post_Generator: direct link, hf CLI and curl.
- Browser
- Download file 756 Bytes
-
https://huggingface.co/spaces/Samagra07/LinkedIn_Post_Generator/resolve/main/src/tasks/blog_writer_agent_task.py
- Command line
-
hf download hf://spaces/Samagra07/LinkedIn_Post_Generator/src/tasks/blog_writer_agent_task.py
-
curl -L -o blog_writer_agent_task.py https://huggingface.co/spaces/Samagra07/LinkedIn_Post_Generator/resolve/main/src/tasks/blog_writer_agent_task.py
756 Bytes
| import os | |
| from crewai import Task | |
| from dotenv import load_dotenv | |
| from crewai_tools import SerperDevTool | |
| from src.agents.blog_writer_agent import blog_writer_agent | |
| load_dotenv() | |
| os.environ['SERPER_API_KEY'] = os.getenv("SERPER_API_KEY") | |
| tools = SerperDevTool() | |
| blog_writer_agent_task = Task( | |
| description="Write a comprehensive blog post based on the 1 article provided by the Topic Researcher. The article must include an introduction, step-by-step guides and conclusion. The overall content must be about 400 words long.", | |
| expected_output="A comprehensive and well-written blog post with an outline and audience analysis and resources. Each section should have 2 or 3 paragraphs", | |
| agent=blog_writer_agent, | |
| tools=[tools] | |
| ) |