Create UIs for your machine learning model in Python in 3 minutes https://github.com/gradio-app/gradio
![]() |
8 months ago | |
---|---|---|
demo | 8 months ago | |
docs | 8 months ago | |
.gitignore | 8 months ago | |
Dockerfile | 8 months ago | |
README.md | 1 year ago | |
docker-compose.yml | 8 months ago | |
poetry.lock | 8 months ago | |
pyproject.toml | 8 months ago | |
requirements.txt | 1 year ago |
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