Huggingface Cookbook
Content
Huggingface Cookbook
Note: Fork and clone this repository if needed
1. Create and activate a virtual environment
python3 -m venv ~/.venvs/aienv
source ~/.venvs/aienv/bin/activate
2. Export HF_TOKEN
export HF_TOKEN=***
3. Install libraries
uv pip install -U huggingface_hub agno
4. Run basic Agent
python cookbook/90_models/huggingface/basic.py
5. Run agent with tools
- An essay writer using Llama model
python cookbook/90_models/huggingface/llama_essay_writer.pySource and license
- Source
- Agno
- Original
- agno-agi/agno/cookbook/90_models/huggingface
- License
- Apache-2.0