We have been working hard over the past few months and today, we would like to show you the results:Gradio 5 Stable Now Available。
With Gradio 5, developers can buildProduction-grade machine learning web applicationsThese applications are not only high-performing, scalable, well-designed, and easy to access, but they also follow the best web security practices. What's more, they can be implemented with just a few lines of Python code.
To experience Gradio 5, simply enter the following command in the terminal:
pip install --upgrade gradio
Then start building yourFirst Gradio application。
Gradio 5: A Machine Learning Application Building Tool for Production Environments
If you've used Gradio before, you may be wondering what's different about Gradio 5.
The goal of Gradio 5 is to listen to and solve common problems that Gradio developers encounter when building production-grade applications. For example, we've heard some developers mention:
- "Gradio apps load too slowly" → Gradio 5 brings significant performance improvements, including serving Gradio apps via Server Side Rendering (SSR), which loads apps almost instantly in the browser.Say goodbye to spinning around when loading! 🏎️💨
-
"This Gradio app looks a bit dated" → Gradio 5 features modern design improvements to many core components, including buttons, tabs, sliders, and an advanced chat interface. We've also released a new set of built-in themes that make it easy to create sleek-looking Gradio apps 🎨.
-
"I can't build real-time applications in Gradio" → Gradio 5 implements low-latency stream processing! We use base64 encoding and websockets for automatic acceleration, as well as support for WebRTC through custom components. in addition, a large amount of documentation and sample demos have been added, covering common stream processing use cases such as camera-based object detection, video stream processing, real-time voice transcription and generation, and conversational chatbots. 🎤
-
"LLM doesn't understand Gradio" → Gradio 5 introduces an experimental AI Playground where you can use AI to generate or modify Gradio apps and instantly preview them in your browser:/playground
Gradio 5 offers all of these new features while retaining a simple and intuitive developer API. As a production-grade web framework for a wide range of machine learning applications, Gradio 5 also features significant improvements in web security (including third-party auditing) - more details on this in an upcoming blog post!
breaking changes
Gradio apps that don't show a deprecation warning in Gradio should continue to work fine in Gradio 5.For a few exceptions, see the list of breaking changes in Gradio 5。
What's Next for Gradio
Many of the changes we've made in Gradio 5 are in support of new features that will be released soon. Stay tuned for the following:
- Support for multi-page Gradio apps, as well as native navigation bars and sidebars
- Support for running Gradio apps on mobile devices via PWAs, possibly even native apps
- More multimedia components to support emerging image and video processing paradigms
- Richer DataFrame components to support common spreadsheet operations
- One-click integration with machine learning models and API providers
- Further Reduce Memory Consumption in Gradio Apps
and more! With the solid foundation provided by Gradio 5, we're excited to let developers use Gradio to build a wide variety of machine learning applications.
Try Gradio 5 now!
Here are some Space apps running Gradio 5 to try out.
- /
- /
- /
- /