Favicon of Gradio

Gradio

An open-source Python library for AI web interfaces that run locally, with chatbot components, public sharing links and Hugging Face Spaces hosting.

Screenshot of Gradio website

Gradio builds browser interfaces around machine learning models, APIs and Python functions. It's for developers and researchers who want people to try an AI application without writing a separate JavaScript or CSS frontend.

  • Model demos: Turn a Python function into an interactive page with inputs and outputs suited to the task.
  • Media and data components: Accept or display images, audio, video, plots, data tables and 3D content, alongside text and other controls.
  • Chatbot interfaces: ChatInterface provides a dedicated conversational UI around a supplied Python function.
  • Custom applications: Blocks lets you arrange components, connect outputs to later inputs, and change component visibility or properties as people interact with the app.

Gradio is open source under Apache 2.0 and runs wherever you write Python, including a local code editor or Jupyter notebook. The app can run on your computer while users interact with it through a browser. Model execution depends on the Python function behind the interface, which can call a model or an external API.

Optional public links expose a demo that's still running on your local computer. Hugging Face Spaces is a separate hosted option for keeping an application online.

Similar to Gradio