# Gradio

框架 · https://godooo.ai/zh/framework/gradio

> Gradio 是 Hugging Face 出品的开源 AI 开发框架，2018 年推出，面向开发者。

为机器学习模型快速搭建并分享网页演示的 Python 库。

能做：部署上线、搭建对话机器人。开源，可以免费使用。使用方式：网页版、自部署、本地离线运行、API、命令行。

## 速览

- **类别:** [框架](https://godooo.ai/zh/browse#framework)
- **出品方:** [Hugging Face](https://godooo.ai/zh/org/hugging-face)
- **推出于:** 2018
- **所属星系:** [模型与 API](https://godooo.ai/zh/galaxy/builders)
- **是否开源:** 是 · Apache-2.0
- **源代码:** [github.com/gradio-app/gradio](https://github.com/gradio-app/gradio)
- **GitHub 星标:** 43,615
- **使用方式:** 网页 · 可自部署 · 可离线本地运行 · API · 命令行
- **适合谁:** 开发者
- **官网:** [gradio.app](https://www.gradio.app)
- **别名:** Gradio Blocks

## 能做什么

- **[部署上线](https://godooo.ai/zh/capability/deployment)** — 支持, _由机器提出，尚待校准_. “Deploy to Hugging Face Spaces for free. Always online, auto-scaling, and shareable with a simple URL.” (摘自 [gradio.app](https://gradio.app/)，2026-09-24)
- **[搭建对话机器人](https://godooo.ai/zh/capability/chatbot-builder)** — 凑合能用, _由机器提出，尚待校准_. “Gradio includes another high-level class, gr.ChatInterface , which is specifically designed to create Chatbot UIs.” (摘自 [github.com](https://github.com/gradio-app/gradio)，2026-09-24)

## 平替与同类

- **[Chainlit](https://godooo.ai/zh/framework/chainlit)** (开源免费): 同样能做：搭建对话机器人
- **[Coze 扣子](https://godooo.ai/zh/product/coze)** (免费版 + 付费升级): 同样能做：搭建对话机器人；不用写代码
- **[Dify](https://godooo.ai/zh/product/dify)** (开源免费): 同样能做：搭建对话机器人；不用写代码
- **[GPTs](https://godooo.ai/zh/skill/gpts)**: 同样能做：搭建对话机器人；不用写代码
- **[Replit](https://godooo.ai/zh/product/replit)** (免费版 + 付费升级): 同样能做：部署上线；不用写代码
- **[Bolt.new](https://godooo.ai/zh/product/bolt)** (免费版 + 付费升级): 同样能做：部署上线；不用写代码
- **[Botpress](https://godooo.ai/zh/product/botpress)** (开源免费): 同样能做：搭建对话机器人
- **[FastGPT](https://godooo.ai/zh/product/fastgpt)** (开源免费): 同样能做：搭建对话机器人；不用写代码
- **[Gems](https://godooo.ai/zh/skill/gems)**: 同样能做：搭建对话机器人；不用写代码
- **[LangBot](https://godooo.ai/zh/product/langbot)** (开源免费): 同样能做：搭建对话机器人；不用写代码
- **[MaxKB](https://godooo.ai/zh/product/maxkb)** (开源免费): 同样能做：搭建对话机器人；不用写代码
- **[Rasa](https://godooo.ai/zh/framework/rasa)** (开源免费): 同样能做：搭建对话机器人

## 常见问题

### Gradio 是什么？

Gradio 是 Hugging Face 出品的开源 AI 开发框架，2018 年推出，面向开发者。为机器学习模型快速搭建并分享网页演示的 Python 库。

### Gradio 免费吗？

免费。Gradio 是开源软件（Apache-2.0）。

### Gradio 开源吗？

开源，许可证是 Apache-2.0。源代码在 https://github.com/gradio-app/gradio。

### Gradio 能本地运行吗？

能，可以在自己的电脑上离线运行。也可以部署在自己的服务器上。

### Gradio 能做什么？

能做：部署上线、搭建对话机器人。

### Gradio 是谁开发的？

由 Hugging Face 开发。

### Gradio 有哪些开源替代品？

开源的有：Chainlit、Dify、Botpress、FastGPT、LangBot、MaxKB、Rasa。其他：Coze 扣子、GPTs、Replit、Bolt.new、Gems。

## 来源

- [gradio.app](https://gradio.app/) — 核实于 2026-09-24
- [github.com](https://github.com/gradio-app/gradio) — 核实于 2026-09-24
- [gradio.app](https://www.gradio.app)

---

最后更新 2026-09-24 · 来源核实于 2026-09-24 · 这是 https://godooo.ai/zh/framework/gradio 的 Markdown 版本。本站每个页面都有：在地址后面加 .md。
