File size: 1,192 Bytes
0128def
c365bc1
0128def
 
 
 
9f39c86
0128def
 
3ce50c4
c365bc1
e0cc0af
e8d4494
 
 
e3d7fcc
c365bc1
0128def
 
2d99569
 
ce3ac0f
 
2d99569
 
 
 
c365bc1
 
3a6252e
 
c365bc1
 
 
 
 
 
 
 
 
 
 
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
37
38
39
40
41
42
43
---
title: First Agent
emoji: 
colorFrom: pink
colorTo: yellow
sdk: gradio
sdk_version: 5.23.1
app_file: app.py
pinned: false
tags:

- smolagents
- agent
- smolagent
- tool
- agent-course

---

Check out the configuration reference at [spaces-config-reference](https://huggingface.co/docs/hub/spaces-config-reference).

# Unit one: Smolagents

Main course GitHub repository [HuggingFace agents course](https://github.com/gperdrizet/hf-agents-course).

First hands-on course exercise - create a simple agent using Smolagents.

## Running

From you HuggingFace settings dashboard, create a fine-grained access token with inference permissions.

### 1. HuggingFace spaces

[Unit One: Smolagents](https://huggingface.co/spaces/gperdrizet/unit-one-smolagents)

Make your own copy of the space and add your HuggingFace token as `HF_TOKEN` via: settings → Secrets and variables → New secret.

### 2. GitHub codespace

[Unit One: Smolagents](https://github.com/gperdrizet/unit-one-smolagents/tree/main)

Fork a copy of the repository, then add you HuggingFace token as `HF_TOKEN` via: settings → Secrets and variables → Codespaces → New repository secret. Start a new codespace on main.