scrimba
AI Engineering
Open-source AI Models
Finding Free Models With The HuggingFace.js Hub 🤗
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Finding Free Models With The HuggingFace.js Hub 🤗
AboutCommentsNotes
Finding Free Models With The HuggingFace.js Hub 🤗
Expand for more info
index.js
run
preview
console
import { listModels } from "@huggingface/hub";

// Create your Hugging Face Token: https://huggingface.co/settings/tokens
// Set your Hugging Face Token: https://scrimba.com/dashboard#env
// Learn more: https://scrimba.com/links/env-variables
const token = process.env.HF_TOKEN
Console
/index.html
-4:33