gradio-app/gradio

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

What it solves

Gradio simplifies the process of creating web-based interfaces for machine learning models, APIs, or Python functions. It removes the need for front-end development skills (JavaScript, CSS, or web hosting) to build and share interactive demos of AI models.

How it works

It provides a Python library that wraps functions with a user interface. Users can define inputs and outputs using built-in components (like textboxes, sliders, and images) and launch the app. It offers three main ways to build:

  • Interface: A high-level class for simple input-output mappings.
  • Blocks: A low-level API for customizable layouts and complex data flows.
  • ChatInterface: A specialized high-level class for creating chatbot UIs quickly.

Additionally, it includes built-in sharing features that generate a public URL for local models, as well as Python and JavaScript clients for programmatic access.

Who it’s for

Machine learning engineers, data scientists, and Python developers who want to rapidly prototype and share their AI models without writing front-end code.

Highlights

  • No Front-end Required: Build full web apps using only Python.
  • Instant Sharing: Generate public URLs to share local demos in seconds.
  • Customizable Layouts: Use gr.Blocks for complex interactions and custom page designs.
  • AI Coding Skills: Provides specific knowledge extensions for AI coding assistants to help build apps more effectively.
  • Broad Ecosystem: Includes dedicated clients for Python and JS, and integrates with Hugging Face Spaces for hosting.

Related

  • Project
  • Dispatch
  • Dispatch
  • Dispatch
  • Dispatch