C✳CODEZ.WIN
🌐 繁體中文

Skill 多語言閱讀指南

huggingface-gradio用途、用法與原始來源

使用 Python 建立 Gradio Web 使用者介面和演示。可用於建立或編輯 Gradio 應用程式、元件、事件監聽器、佈局或聊天機器人。

原文擷取時間:

來源儲存庫
huggingface/skills
SKILL.md
skills/huggingface-gradio/SKILL.md
儲存庫 Star
11,241
儲存庫最近更新
2026-10-30
能力分類
開發
最近採集時間

授權:Apache-2.0

流程片段用來協助閱讀上游說明。本頁沒有執行第三方 Skill,不屬於實測評測。

下面的用途與操作片段來自上游文件,由本站整理並翻譯,和另行標示的 Codez 編輯分析分開呈現。

這個 Skill 能做什麼

使用 Python 建立 Gradio Web 使用者介面和演示。可用於建立或編輯 Gradio 應用程式、元件、事件監聽器、佈局或聊天機器人。

如何使用:上游操作流程

核心模式

介面(進階):包裝一個函數input/output組件。塊(底層):靈活的佈局,帶有明確的事件連接。聊天介面:聊天機器人使用者介面的高級封裝。

原文片段 · L27 ↗

Number(value: float | Callable | None = None, label: str | I18nData | None = None, placeholder: str | I18nData | None = None, info: str | I18nData | None = None, every: Timer | float | None = None, inputs: Component | Sequence[Component] | set[Component] | None = None, show_label: bool | None = None, container: bool = True, scale: int | None = None, min_width: int = 160, interactive: bool | None = None, visible: bool | Literal['hidden'] = True, elem_id: str | None = None, elem_classes: list[str] | str | None = None, render: bool = True, key: int | str | tuple[int | str, ...] | None = None, preserved_by_key: list[str] | str | None = "value", buttons: list[Button] | None = None, precision: int | None = None, minimum: float | None = None, maximum: float | None = None, step: float = 1)

建立一個數字字段,供使用者輸入數字或顯示數字輸出。

原文片段 · L70 ↗

Slider(minimum: float = 0, maximum: float = 100, value: float | Callable | None = None, step: float | None = None, precision: int | None = None, label: str | I18nData | None = None, info: str | I18nData | None = None, every: Timer | float | None = None, inputs: Component | Sequence[Component] | set[Component] | None = None, show_label: bool | None = None, container: bool = True, scale: int | None = None, min_width: int = 160, interactive: bool | None = None, visible: bool | Literal['hidden'] = True, elem_id: str | None = None, elem_classes: list[str] | str | None = None, render: bool = True, key: int | str | tuple[int | str, ...] | None = None, preserved_by_key: list[str] | str | None = "value", randomize: bool = False, buttons: list[Literal['reset']] | None = None)

建立一個滑桿,其範圍從 {minimum} 到 {maximum},步長為 {step}。

原文片段 · L73 ↗
原文片段 · python ↗
import gradio as gr

def greet(name):
    return f"Hello {name}!"

gr.Interface(fn=greet, inputs="text", outputs="text").launch()

環境與相依需求

本次未從該檔案選出獨立的環境需求片段,不代表無須相依套件。請繼續核對儲存庫的安裝說明和引用檔案。

限制與結果檢查

本次未從該檔案選出獨立的限制片段,不代表適用於所有輸入或環境。請閱讀完整原文,並自行驗證實際結果。

開始使用前

  1. 先核對支援的 Agent 宿主和儲存庫安裝說明。保留完整 Skill 目錄及其引用的腳本、資源和文件,只複製 SKILL.md 可能遺漏相依需求。
  2. 向 Agent 提供實際輸入、預期輸出和驗收標準。呼叫方式與可用工具取決於宿主環境,本站不假定存在通用的安裝指令。
  3. 先在暫存專案或輸入副本上試用。涉及修改檔案、遠端服務或計費資源的操作,應逐項核對後再授權。
  4. 依照原文檢查項目和自己的需求驗證輸出。成功觸發或儲存庫 Star 較高,都不能證明結果正確。

Skill 檔案與目錄格式規範 ↗

繼續閱讀原始文件

翻譯與介紹範圍

本頁從固定版本的上游 SKILL.md 整理用途與操作片段,譯文使用輔助翻譯。它不是完整手冊,也不代表經過相容性實測;使用前請核對原文及其引用檔案。

介紹依據下方列出的固定版本;目前儲存庫動態和目錄擷取時間分開呈現。

固定版本來源
閱讀原文 ↗
原文擷取時間
來源提交版本
fabc634a893f62ad5c2039830397efa35fa62715
原文 SHA-256
ce41c656e364a8027755a520372448036d90811f5a1d377f02bb9d549c0865a9
返回完整 Skill 目錄