Example

Usage

Get your API key from HuggingFace here.

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

2

Install libraries

pip install -U huggingface_hub phidata
3

Export Environment Variables

export HF_TOKEN=***
4

Run HuggingFace Agent

python cookbook/providers/huggingface/basic.py

Information