# Showcase Your Projects in Spaces using Gradio

huggingface.co · merve · Oct 5, 2021

**Type:** Tutorial

## Summary

Demonstrating machine learning projects to the community requires accessible hosting and minimal interface boilerplate. Gradio integrates directly with the Hugging Face Hub and its underlying Inference API, enabling developers to load models using repository identifiers and launch interactive interfaces with a few lines of code. Hugging Face Spaces provides a free hosting environment where users select Gradio as the SDK, commit an app.py script, and deploy live web demonstrations for frameworks like Transformers, spaCy, SpeechBrain, and Asteroid. For complex workflows, developers can chain multiple models sequentially via Gradio Series or host custom checkpoints directly when models lack native Inference API support.

## Context

Sharing and demonstrating machine learning models publicly requires hosting solutions and functional user interfaces without introducing significant development overhead.

## Approach / What changed

Developers define a Gradio Interface via gr.Interface.load using Hugging Face Hub model IDs, configure metadata and examples, and deploy the application to Hugging Face Spaces using the Gradio SDK. Workflows can also combine multiple models sequentially using Gradio Series or wrap custom inference checkpoints directly.

## Takeaways

- Gradio connects with the Hugging Face Inference API via gr.Interface.load, supporting tasks across frameworks including Transformers, spaCy, SpeechBrain, and Asteroid.
- Hugging Face Spaces provides free hosting for Python ML demo applications using Git or drag-and-drop file uploads containing an app.py script configured with the Gradio SDK.
- Gradio Series enables chaining multiple distinct models together, such as linking translation models before and after a story generator.

**Tags:** [Deployment](https://yomu.fyi/topic/deployment), [Machine Learning](https://yomu.fyi/topic/machine-learning), [Python](https://yomu.fyi/topic/python)

[Read original post](https://huggingface.co/blog/gradio-spaces)
