overview
Gradio: Build Machine Learning Web Apps — in Python
- Quickly Build Demos or Web Apps: Easily create a demo or web application for your machine learning model, API, or any arbitrary Python function.
- Share with Ease: Utilize Gradio's built-in sharing features to distribute your demo or web application link in just a few seconds.
- No Web Experience Required: There's no need for JavaScript, CSS, or web hosting knowledge.
- デモまたはウェブアプリを迅速に構築: あなたの機械学習モデル、API、または任意のPython関数のためのデモやウェブアプリケーションを簡単に作成できます。
- 簡単に共有: Gradioの組み込み共有機能を使用して、あなたのデモやウェブアプリケーションリンクを数秒で配布できます。
- ウェブ経験不要: JavaScript、CSS、またはウェブホスティングの知識は必要ありません。
quick start
pip install gradio
import gradio as gr def greet(name, intensity): return "Hello, " + name + "!" * int(intensity) demo = gr.Interface( fn=greet, inputs=["text", "slider"], outputs=["text"], ) demo.launch()
- output