# gradio

> Build and share delightful machine learning apps, all in Python. Star to support our work!

- Type: agent or tool
- Field: ML & AI
- Repository: https://github.com/gradio-app/gradio
- GitHub stars: 44131
- Licence: Apache-2.0
- Language: Python
- Last push: 2026-11-24
- Page: https://imutechz.in/agents/gradio

## What it is
Gradio is an open-source Python package for building web demos and applications around machine learning models, APIs, or any Python function. It requires Python 3.10 or higher and provides over 30 built-in UI components. Apps can be shared via built-in sharing links without JavaScript, CSS, or web hosting knowledge. Gradio runs in code editors, Jupyter notebooks, and Google Colab.

## Features
- 30+ built-in UI components (textbox, slider, image, audio, video, etc.)
- gr.Interface class wraps any Python function with inputs and outputs
- Built-in sharing generates public links instantly
- Hot reload mode via gradio command for live editing
- Vibe mode with --vibe flag for natural-language app editing
- Runs in Jupyter, Colab, VS Code, or as standalone Python scripts

## Best for
- Quick ML model demos and prototypes
- Sharing interactive Python functions with non-technical users
- Building data science web apps without frontend skills
- Teaching and demonstrating ML concepts interactively

## Pros
- No JavaScript, CSS, or web hosting experience required
- Single Python file creates a full web interface
- Built-in sharing works without external deployment
- Supports hot reloading for faster development

## Cons
- Requires Python 3.10 or higher
- Sharing links are temporary and rely on Gradio's tunnel service
- Limited customization beyond provided components without custom CSS/JS

## Install
```
pip install --upgrade gradio
```

## Usage
```
import gradio as gr

def greet(name, intensity):
    return "Hello, " + name + "!" * int(intensity)

demo = gr.Interface(
    fn=greet,
    inputs=["text", "slider"],
    outputs=["text"],
    api_name="predict"
)

demo.launch()
```

Tags: machine-learning, web-app, python, demo, sharing, jupyter, gradio, interface
