Hugging Face BlogFeb 18, 2026, 12:00 AMimportant 80

使用 Gradio 的 gr.HTML 元件,一鍵生成並運行任何網頁應用程式 (One-Shot Web App)

Original: One-Shot Any Web App with Gradio's gr.HTML

With the explosion of large language models (LLMs) in the code generation space, features like Claude Artifacts that can "generate a…

Hugging Face 官方部落格介紹了利用 Gradio gr.HTML 元件實現「一鍵生成網頁應用(One-Shot Web App)」的新方法。透過結合 LLM 強大的單檔案代碼生成能力,開發者可以直接將生成的完整 HTML/JS/CSS 程式碼注入 Gradio 介面中運行。這不僅突破了 Gradio 原本的 UI 限制,還能無縫託管於 Hugging Face Spaces,為快速開發自定義互動工具、遊戲和儀表板開闢了全新途徑。

With the explosion of large language models (LLMs) in the code generation space, features like Claude Artifacts that can "generate a complete web application in one shot" have become immensely popular. A recent official blog post from Hugging Face points out that developers can now use Gradio's `gr.HTML` component to achieve a similar "one-shot" web generation and rendering experience within Gradio applications.

Full summary

Free shows the 3-line summary; Pro unlocks the full deep summary (~300 words) so you never have to click through.

See Pro plans →

Want the original English / full article?

Read on Hugging Face Blog →

Summaries are AI-generated; the original article is authoritative.