File size: 1,327 Bytes
2705160 61c0ec0 62ad9da 2705160 d123508 2705160 1b8aef5 2705160 1b8aef5 2224195 1b8aef5 62ad9da |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
---
title: Agents Course Final Assignment
emoji: 🕵🏻♂️
colorFrom: indigo
colorTo: indigo
sdk: gradio
sdk_version: 5.25.2
app_file: app.py
pinned: false
hf_oauth: true
# optional, default duration is 8 hours/480 minutes. Max duration is 30 days/43200 minutes.
hf_oauth_expiration_minutes: 480
---
# Evaluation application for Unit 4 of the HuggingFace Agents course
This is my implementation of the evaluation application.
Differently from the original application I cloned from, this one is thought
to be run locally, because I am using Ollama.
When running locally, you have to create a `.env` file into the root of the
project. This file gets read from the `dotenv.load_dotenv()` instruction
and must contain the following variables:
```commandline
HF_USERNAME="<your HuggingFace user name>"
HF_ACCESS_TOKEN="<your HuggingFace access token>"
SPACE_HOST="localhost"
SPACE_ID="<your space ID>"
TAVILY_API_KEY="<your tavily API key>"
```
You can infer the space ID by reading the address of your space when you
access the `Files` section. For example, if you read
```commandline
https://huggingface.co/spaces/aaa/bbb/tree/main
```
then the `SPACE_ID` is `aaa/bbb` (where `aaa` should be the user name).
# Configuration
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference |