Create UIs for your machine learning model in Python in 3 minutes https://github.com/gradio-app/gradio

fish c1179ed388 1 3 months ago
demo c1179ed388 1 3 months ago
docs c1179ed388 1 3 months ago
.gitignore c1179ed388 1 3 months ago
Dockerfile 5c8c8c3152 0 3 months ago
README.md 052e9091fe Update 'README.md' 1 year ago
docker-compose.yml 5c8c8c3152 0 3 months ago
poetry.lock c1179ed388 1 3 months ago
pyproject.toml c1179ed388 1 3 months ago
requirements.txt 47d6a2dd0b 0 1 year ago

README.md

gradio

gradio 快速创建一个机器学习模型 demo web项目。

pip install gradio

import gradio as gr
def sketch_recognition(img):
    pass# Implement your sketch recognition model here...

gr.Interface(fn=sketch_recognition, inputs="sketchpad", outputs="label").launch()

launch() 启动一个web项目,端口默认3000

网站: https://gradio.app/