
Hugging Face Blog
· 1 min read
Welcome, Gradio 5
We’ve been hard at work over the past few months, and we are excited to now announce the stable release of Gradio 5.
With Gradio 5, developers can build production-ready machine learning web applications that are performant, scalable, beautifully designed, accessible, and follow best web security practices, all in a few lines of Python.
To give Gradio 5 a spin, simply type in your terminal:
pip install --upgrade gradio
and start building your first Gradio application.
Gradio 5: production-ready machine learning apps
If you have used Gradio before, you might be wondering what’s different about Gradio 5.
Our goal with Gradio 5 was to listen to and address the most common pain points that we’ve heard from Gradio developers about building production-ready Gradio apps. For example, we’ve heard some developers tell us:
- “Gradio apps load too slowly” → Gradio 5 ships with major performance improvements, including the ability to serve Gradio apps via server-side rendering (SSR) which loads Gradio apps almost instantaneously in the browser. No more loading spinner! 🏎️💨
Gradio 5 provides all these features while maintaining Gradio’s simple and intuitive developer-facing API. Since Gradio 5 intended to be a production-ready web framework for all kinds of machine learning applications, we've also made significant improvements around web security (including getting a 3rd-party audit of Gradio) -- more about that in an upcoming post!
Breaking changes
Gradio apps that did not raise any deprecation warnings in Gradio 4.x should continue to work in Gradio 5, with a small number of exceptions. See a list of breaking changes in Gradio 5 here.
What’s next for Gradio?
Many of the changes we’ve made in Gradio 5 are designed to enable new functionality that we will be shipping in the coming weeks. Stay tuned for:
And much more! With Gradio 5 providing a robust foundation to build web applications, we’re excited to really get started letting developers build all sorts of ML apps with Gradio.
Original source
This story was published by Hugging Face Blog. SyncAI.news shows a preview; the complete article is on the publisher's site.
Read the full story on huggingface.co


