मुख्य सामग्री पर जाएँ
Skillpedia
वेबसाइट और UI (frontend)11k · #11773

huggingface-gradio

यह क्या करती है

यह स्किल AI को Gradio Python लाइब्रेरी से छोटे वेब ऐप और मशीन लर्निंग डेमो बनाने में मदद करती है। यह उन डेवलपर्स और शोधकर्ताओं के लिए है जो किसी मॉडल को सरल ब्राउज़र इंटरफ़ेस में साझा करना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप Python में किसी मशीन लर्निंग मॉडल के लिए वेब डेमो या इंटरफ़ेस बनाना चाहते हैं।
  • ✓जब आपको Gradio से चैटबॉट, फ़ॉर्म या कस्टम लेआउट बनाना हो।
  • ✓जब आप किसी मौजूदा Gradio ऐप के कंपोनेंट या इवेंट हैंडलिंग बदलना चाहते हैं।

Skill का लिंक

https://github.com/huggingface/skills/blob/main/skills/huggingface-gradio/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/huggingface/skills/blob/main/skills/huggingface-gradio/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“एक Gradio डेमो बनाइए जहाँ मैं एक वाक्य लिखूँ और मेरे मॉडल से उसका sentiment परिणाम दिखे।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI एक छोटा Python ऐप लिखता है, जो एक फ़ंक्शन को इनपुट और आउटपुट हिस्सों के साथ लपेटता है, या इवेंट लिसनर के साथ कस्टम लेआउट बनाता है। यह मानक Gradio पैटर्न अपनाता है, ताकि ऐप ब्राउज़र में चले।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Gradio

Gradio is a Python library for building interactive web UIs and ML demos. This skill covers the core API, patterns, and examples.

Guides

Detailed guides on specific topics (read these when relevant):

Core Patterns

Interface (high-level): wraps a function with input/output components.

import gradio as gr

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

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

Blocks (low-level): flexible layout with explicit event wiring.

import gradio as gr

with gr.Blocks() as demo:
    name = gr.Textbox(label="Name")
    output = gr.Textbox(label="Greeting")
    btn = gr.Button("Greet")
    btn.click(fn=lambda n: f"Hello {n}!", inputs=name, outputs=output)

demo.launch()

ChatInterface: high-level wrapper for chatbot UIs.

import gradio as gr

def respond(message, history):
    return f"You said: {message}"

gr.ChatInterface(fn=respond).launch()

Key Component Signatures

Textbox(value: str | I18nData | Callable | None = None, type: Literal['text', 'password', 'email'] = "text", lines: int = 1, max_lines: int | None = None, placeholder: str | I18nData | 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, autofocus: bool = False, autoscroll: bool = True, 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", text_align: Literal['left', 'right'] | None = None, rtl: bool = False, buttons: list[Literal['copy'] | Button] | None = None, max_length: int | None = None, submit_btn: str | bool | None = False, stop_btn: str | bool | None = False, html_attributes: InputHTMLAttributes | None = None)

Creates a textarea for user to enter string input or display string output..

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)

Creates a numeric field for user to enter numbers as input or display numeric output..

`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

अक्सर पूछे जाने वाले सवाल

क्या मुझे वेब डेवलपमेंट आना चाहिए?

नहीं। Gradio से आप इंटरफ़ेस Python में बना सकते हैं, आम हिस्सों के लिए HTML या JavaScript लिखे बिना।

क्या यह चैटबॉट बना सकती है?

हाँ। चैटबॉट इंटरफ़ेस उन आम पैटर्न में से एक है जिन्हें स्किल कवर करती है।

क्या मैं रूप-रंग बदल सकता हूँ?

हाँ। स्किल लेआउट कवर करती है, और ज़रूरत हो तो कस्टम CSS और JavaScript भी।

जानकारी

लेखक का मूल विवरण

Build Gradio web UIs and demos in Python. Use when creating or editing Gradio apps, components, event listeners, layouts, or chatbots.

repo: huggingface/skills

लोकप्रियता

GitHub स्टार
11k
रैंकिंग में स्थान
#11773
लाइसेंस
Apache-2.0
अपडेट की गई
30/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

hf-cli

11k

यह आपके एजेंट को hf कमांड लाइन टूल से Hugging Face पर मॉडल, डेटासेट, Spaces, रिपो और लोकल कैश डाउनलोड करने, अपलोड करने और संभालने में मदद करती है।

डेटामशीन लर्निंग

hf-cloud-aws-context-discovery

11k

यह आपके एजेंट को किसी भी क्लाउड काम से पहले AWS प्रोफ़ाइल, क्षेत्र और खाते का विवरण खोजने में मदद करती है, ताकि वह अंदाज़ा लगाकर खाता न चुने।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

hf-cloud-python-env-setup

11k

यह आपके एजेंट को SageMaker या AWS ऑटोमेशन चलाने से पहले सही Python संस्करण और ताज़ा लाइब्रेरी वाला साफ़ Python वातावरण सेट करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

hf-cloud-sagemaker-deployment-planner

11k

यह आपके एजेंट को मॉडल को Amazon SageMaker पर डिप्लॉय करने की योजना बनाने में मदद करती है, real-time, serverless, async या batch होस्टिंग में से सही विकल्प चुनकर।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

मिलती-जुलती skills