The GitHub of AI

Democratizing Good Machine Learning. Hugging Face is the collaborative platform where the global AI community builds, trains, and shares models, datasets, and applications.

Open Source

Over 1 million free, accessible models and datasets.

Community Driven

Collaborate with researchers and developers worldwide.

State of the Art

Access the latest breakthroughs in AI instantly.

The Hugging Face Ecosystem

Explore the three core pillars that make building AI applications faster and easier than ever.

The Hub for Pre-trained Models

Hugging Face hosts over a million pre-trained models for Natural Language Processing (NLP), Computer Vision, Audio, and Multimodal tasks. Instead of training from scratch, you can download a model and use it immediately or fine-tune it for your specific needs.

  • NLP: Text generation (LLMs like Llama, Mistral), Translation, Summarization.
  • Vision: Image classification, Object detection, Stable Diffusion.
  • Audio: Speech recognition (Whisper), Text-to-speech.
Browse Models
// Python Example: Using a pipeline
from transformers import pipeline

# Load a sentiment analysis model
classifier = pipeline("sentiment-analysis")

# Get predictions
result = classifier("I love learning AI!")
print(result)

>>> [{'label': 'POSITIVE', 'score': 0.999}]

Fuel for your AI

Models need data. The Hugging Face Hub hosts over 100,000 public datasets in over 100 languages. Whether you need text for LLMs, images for vision models, or audio clips, it's easily accessible via the `datasets` library.

  • Seamlessly load large datasets with one line of code.
  • Memory mapping prevents RAM crashes on massive files.
  • Built-in processing and evaluation tools.
Browse Datasets
// Python Example: Loading a dataset
from datasets import load_dataset

# Load the IMDB reviews dataset
dataset = load_dataset("imdb")

# Access training data
print(dataset["train"][0])

>>> {'text': 'I rented I AM CURIOUS-YELLOW from my video store...', 'label': 0}

Showcase your Machine Learning Apps

Hugging Face Spaces offers a simple way to host and share your ML web apps with the world. It provides the infrastructure to deploy applications directly from your browser or via Git.

Gradio & Streamlit

Build Python UIs in minutes and host them natively.

Docker

Deploy custom environments and complex backends.

Static HTML (Like this page!)

Host lightweight frontend-only HTML/CSS/JS websites easily.

Discover Spaces
huggingface.co/spaces/your-name/demo
🖼️ ➡️ 📝

Image Captioning Demo

Drop an image here to get a caption generated by an AI model.

Knowledge Check

Test what you've learned about Hugging Face so far.

1. What is Hugging Face commonly referred to as?

2. Which feature allows you to host interactive ML web apps?

Deploy to Hugging Face Spaces

Learn how to deploy this exact HTML page to a Static Space.

deployment-guide.md
1

Create a New Space

Go to huggingface.co/new-space (you must be logged in).

2

Configure the Space

  • Space name: Choose a cool name (e.g., hf-intro-page).
  • License: Choose MIT or Apache 2.0 (optional).
  • Select the Space SDK: Choose Static.
  • Space Hardware: Leave as Free.
  • Click Create Space.
3

Upload the Code

Once created, you will see your repository. Click on Files and versions, then click Add file > Create new file.

Name the file index.html. Copy the complete HTML code of this page and paste it into the editor. Click Commit new file.

4

View your App

Click on the App tab at the top. The Space will build and serve your static HTML file. You now have a live, shareable URL!