kaeken(嘉永島健司)のTech探究ブログ

主に情報科学/情報技術全般に関する知見をポストします。(最近は、特にData Science、機械学習、深層学習、統計学、Python、数学、ビッグデータ)

Gradio: Build Machine Learning Web Apps — in Python まとめ

overview

Gradio

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.

グラディオ:Python機械学習ウェブアプリを構築

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

https://i.gyazo.com/115dac49c57ea84d90f82968468e2a49.gif

huggingface.co

playground

gyazo.com

www.gradio.app

demo list

gradio/demo at main · gradio-app/gradio