Gradio
Python library for building shareable web UIs around ML models and functions in a few lines, including chat interfaces.
Gradio wraps Python functions in input and output components — text, images, audio, chat — and serves them as a web app with an automatic API. Blocks allow more complex layouts and event flows. It is the most common way to build Hugging Face Spaces demos and is maintained by Hugging Face.
- Type
- Library
- Category
- AI & ML
- Maintainer
- Hugging Face
- First released
- 2019
- License
- Open source (Apache-2.0)
- Pricing
- Open source
- Level
- Beginner
- Technologies
- python, machine-learning, web
- GitHub stars
- 44,251
- Weekly downloads
- 1,446,916 (pypi)
- Latest release
- [object Object]
- Last verified
- 26 Nov 2026
What Gradio is used for
- Model demos
- Chatbot front-ends
- Internal labelling or evaluation tools
Strengths
- Very fast to build
- Auto-generated API
- Native Spaces hosting
Limitations
- Limited for complex, branded product UIs
- State handling differs from typical web frameworks
Gradio alternatives
How it relates to other tools
- Gradio works with Hugging Face Spaces
- Gradio works with Python
- Works with Gradio: Hugging Face Hub
Built with the same technologies
Learn Gradio
Official links
- Official website
- Documentation
- Source code (gradio-app/gradio)
- pypi: gradio
- npm: @gradio/client