Back to glossary

Term

Spaces (Hugging Face Spaces)

Hugging Face Spaces is a hosting platform for deploying and sharing interactive machine learning applications without your own server infrastructure. Apps become usable directly in the browser, for example via Gradio, Streamlit, Docker or static HTML.

Spaces (Hugging Face Spaces) — explained in detail

Spaces is a service by Hugging Face for publishing machine learning applications without your own DevOps setup. Instead of renting and configuring a server, you upload your code and receive a running web app with a shareable link. The application runs on Hugging Face’s infrastructure and is immediately accessible in the browser.

To build interactive interfaces, Spaces supports two Python SDKs in particular: Gradio is well suited to making AI models demonstrable, letting users try out different inputs. Streamlit is aimed more at data-driven applications with visualisations. In addition, arbitrary environments can be run via a Dockerfile, and static Spaces can be created from HTML and JavaScript.

In the default tier, Spaces are free and run on shared CPU hardware. For greater demands — such as compute-intensive models — a Space can be upgraded to GPU or other accelerated hardware. Spaces are tightly integrated with the rest of the Hugging Face ecosystem and can access models and datasets from the Hub.

Example / Practical use

A research team publishes a new image classification model and wants interested users to be able to try it without installation. It writes a small Gradio interface with a file upload, sets it up as a Space and shares the link. Visitors upload an image and see the model’s prediction directly in the browser — a common way to make AI demos accessible.

Spaces should not be equated with the Hugging Face Hub. The Hub is the repository for models and datasets; Spaces is the hosting environment for runnable applications that use such models. While Hugging Face as the overall platform forms the ecosystem, Spaces is the concrete component within it that handles the deployment of demo and production apps — comparable to a turnkey hosting service specifically for ML applications.

Entdecke mehr

Themenuebersicht