Create UIs for your machine learning model in Python in 3 minutes https://github.com/gradio-app/gradio
|
|
1 year ago | |
|---|---|---|
| demo | 1 year ago | |
| .gitignore | 1 year ago | |
| README.md | 2 years ago | |
| poetry.lock | 1 year ago | |
| pyproject.toml | 1 year ago | |
| requirements.txt | 2 years 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