前言
发现这个库用来做可视化的demo还不错,简单学习一下。
官网
https://www.gradio.app/
安装
pip install gradio -i https://pypi.tuna.tsinghua.edu.cn/simple/
helloWorld 示例
import gradio as grdef greet(name):return "hello"+nameiface=gr.Interface(fn=greet,inputs="text", # 输入是文本outputs="text" # 输出是文本
)iface.launch()