gradio(界面渲染) ################ * Gradio (https://gradio.app/) * 定位是快速构建一个针对人工智能的 python 的 webApp 库,在 Hugging Face 等提供各种模型推理展示的平台广告使用 安装:: pip install -q gradio 最简单Demo ========== 代码:: import gradio as gr gr.Interface(fn=predict, inputs=["text", "state"], outputs=["text", "state"]).launch() 效果: .. figure:: https://img.zhaoweiguo.com/uPic/2023/05/tVCNqr.jpg