# Index Gradio VS Streamlit: gradio 易用,设置share=True参数创建外部分享链接,可以在jupyter中直接展示页面。 Streamlit 可扩展性 ``` pip install gradio python app.py ``` Interface类以及基础模块 fn:包装的函数 inputs:输入组件类型,(例如:“text”、"image) ouputs:输出组件类型,(例如:“text”、"image) 应用界面:gr.Interface(简易场景), gr.Blocks(定制化场景) 输入输出:gr.Image(图像), gr.Textbox(文本框), gr.DataFrame(数据框), gr.Dropdown(下拉选项), gr.Number(数字), gr.Markdown, gr.Files 控制组件:gr.Button(按钮) 布局组件:gr.Tab(标签页), gr.Row(行布局), gr.Column(列布局) 会话 ## Reference * Gradio官网链接:https://gradio.app/ * Gradio官方文档:https://gradio.app/docs/