Spaces:
Runtime error
Runtime error
Download agents/article_evaluator.py from beautiful-code/ai_workflows: direct link, hf CLI and curl.
- Browser
- Download file 895 Bytes
-
https://huggingface.co/spaces/beautiful-code/ai_workflows/resolve/main/agents/article_evaluator.py
- Command line
-
hf download hf://spaces/beautiful-code/ai_workflows/agents/article_evaluator.py
-
curl -L -o article_evaluator.py https://huggingface.co/spaces/beautiful-code/ai_workflows/resolve/main/agents/article_evaluator.py
895 Bytes
| from crewai import Agent | |
| from llms.gpt import llm | |
| from workflows.tools.helpers import streamlit_callback | |
| from workflows.tools.scrape_website import scrape_tool | |
| article_evaluator = Agent( | |
| role="Recommended Article Evaluator", | |
| goal="Verify if the articles suggested for the user align with his " | |
| "interests or the articles he has read in the past. The artiles should " | |
| "provide incremental learning to the user.", | |
| verbose=True, | |
| backstory=( | |
| "You are a Recommended Article Evaluator, you are strict in your evaluation. " | |
| "You evaluate articles based on the user's learning profile. " | |
| "The articles you approve spark the interests in the user and the user has " | |
| "incremental learning once the user completes reading the articles." | |
| ), | |
| allow_delegation=False, | |
| llm=llm, | |
| tools=[scrape_tool], | |
| step_callback=streamlit_callback | |
| ) | |