# Gradio

- Category: Models & resources
- Official site: https://gradio.app/
- HTML: https://www.88z.ai/en/tools/gradio
- Markdown: https://www.88z.ai/en/tools/gradio.md

Gradio is an open-source Python library that enables developers to create web interfaces for machine learning models in minutes.

## What is Gradio?

Gradio is an open-source Python library that enables developers to create web interfaces for machine learning models in minutes.It handles all the frontend complexities, allowing you to focus on your model logic, whether you are building quick prototypes or production-ready web apps.

With a simple pip install and a few lines of code, you can launch a local server or generate a public shareable link instantly.Gradio supports diverse input and output types including images, audio, video, 3D models, and dataframes, and offers seamless deployment to Hugging Face Spaces for permanent hosting and auto-scaling.

## Key features

- **Lightning Fast S**：Install with one command and launch with a few lines of Python.No JavaScript, CSS, or frontend experience is required.
- **40+ Components**：Built-in support for inputs and outputs of any data type, including images, audio, video, 3D models, dataframes, and chatbots.
- **Share Instantly**：Create a public link to your machine learning demo running on your local computer in seconds, ideal for showing clients or colleagues.
- **Permanent Hostin**：Deploy to Hugging Face Spaces for free with always-online availability, auto-scaling, and easy sharing via a simple URL.
- **Flexible Integra**：Includes a JavaScript client to make it easy to build custom HTML frontends for Python applications, enhancing development flexibility.

## How to use it

1. Install the library using the command pip install gradio.
2. Import the gradio module and define your machine learning prediction function.
3. Create the interface using gr.Interface or gr.Blocks, specifying the input and output component types.
4. Call demo.launch() to start a local server, or set share=True to generate a public link.
5. For permanent hosting, deploy your application to Hugging Face Spaces.

## Where it fits

- **Model Prototypin**：Data scientists quickly build demo interfaces to showcase new algorithm performance to teams or stakeholders.
- **Education & Expe**：Educators and students use it to interactively demonstrate machine learning concepts without building complex websites.
- **Internal Tooling**：Engineering teams build AI-powered data processing or classification tools for internal business processes.

## Pricing and free quota

Pricing and any free quota follow the official site.

## Who it is for

- Machine Learning Engineers
- Data Scientists
- AI Researchers
- Python Developers

## FAQ

### Do I need frontend skills to use Gradio?

No.Gradio is designed for Python developers, allowing you to build complete web interfaces without any JavaScript or CSS knowledge.

### How can I share my Gradio app with others?

You can set share=True when launching the app to generate a temporary public URL.Alternatively, deploy it to Hugging Face Spaces for a permanent link.

### What types of inputs and outputs does Gradio support?

It supports over 40 components, including text, images, audio, video, 3D models, dataframes, JSON, plots, and more.

## Tags

Python Library · ML Interface

Features, pricing and availability follow the official site. Except for 88z.ai’s own API pages, this is a third-party product; 88z.ai only provides a directory introduction.
