A Space is a Git repo that runs an app
Behind the URL huggingface.co/spaces/{org}/{name} is a Git-backed repository with one file that matters: a manifest declaring the SDK (gradio, docker, or static; Streamlit runs through the Docker SDK). Push to the repo, and HF builds and runs the app on managed hardware. Hardware runs from basic CPU up to A100. Since July 2026, creating a Space that runs code (Gradio or Docker) needs a paid plan (PRO for personal accounts); Static Spaces are free for everyone, and free personal accounts can still run up to two Gradio Spaces on ZeroGPU.
Four SDK families
- Gradio — component-first Python UI. Easiest path for ML demos. Auto-generates an inputs/outputs UI from a Python function signature.
- Streamlit — script-first Python UI. Better for dashboards and richer state. Slightly more code than Gradio for the same demo. The built-in Streamlit SDK is deprecated on Spaces; pick the Docker SDK and its Streamlit template instead.
- Docker — arbitrary container. Anything you can put in a Dockerfile. Required for non-Python apps, custom Nginx, custom GPU drivers, FastAPI servers.
- Static — HTML / CSS / JS hosted, no runtime. Good for documentation, landing pages, model showcases.
What Spaces are not
Not a general PaaS. Not a database backend (the default disk is wiped on restart; data that must last goes in an attached Storage Bucket). Not a long-running task queue. Spaces is for "one app, often a model demo, served from the Hub" — great for that, weak for everything else.