Gradio
In plain wordsA free Python library for quickly wrapping an AI model in a simple web page — text boxes, image uploads, chat windows — so that others can try it in a browser.
An open-source Python library that puts a web front end on a Python function, typically one that calls a machine-learning model, in a few lines of code. A developer supplies a function and declares input and output components — text, images, audio, video, files, sliders or chat windows — and Gradio builds the page, queues incoming requests, and provides a temporary public sharing link and an automatic API for programmatic access. Its Blocks interface allows custom layouts and multistep apps, and a chat-interface class builds chatbot front ends. Gradio apps are the default kind of demo on Hugging Face Spaces, which made the library a standard way to publish interactive demonstrations of research models. It is often compared with Streamlit, a Python framework for data apps and dashboards that the data-cloud company Snowflake acquired in 2022.
Wrap the model in a Gradio demo and post it on Spaces so the reviewers can try it.
Origin
Created in 2019 by Abubakar Abid and colleagues, then mostly Stanford University graduate students, to let researchers test models with real users quickly; Hugging FaceHugging Face, prop. n.: A company whose website is the main public library for sharing AI models and datasets — often called the GitHub of machine learning — and which makes widely used free AI software. acquired the project in December 2021.
Related
- Hugging FaceHugging Face, prop. n.: A company whose website is the main public library for sharing AI models and datasets — often called the GitHub of machine learning — and which makes widely used free AI software.
- Jupyter notebookJupyter notebook, n.: An interactive document, opened in a web browser, that mixes runnable code with its results, charts and notes, so people can experiment step by step and share their work.
- model hubmodel hub, n.: An online library where trained AI models are published so that others can find, download and reuse them instead of training their own from scratch.
- chatbotchatbot, n.: Software you chat with in ordinary language, by typing or talking, as you would with a person. The newest ones, such as ChatGPT, can answer questions, draft writing and keep long conversations going.