gradio
Python library for building ML demo UIs with minimal code. Create interactive web interfaces for models with text, image, audio, and video inputs/outputs. Share demos via public links or deploy to Hugging Face Spaces.
npx skills add majiayu000/claude-skill-registry --skill gradio --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Gradio ## Installation ```bash # Install Gradio pip install gradio ``` ## Quick Start — Simple Interface ```python # hello.py — Minimal Gradio app with a text interface import gradio as gr def greet(name: str, intensity: int) -> str: return "Hello, " + name + "!" * intensity demo = gr.Interface( fn=greet, inputs=["text", gr.Slider(1, 10, value=1, label="Excitement")], outputs="text", title="Greeting Generator", description="Enter your name and excitement level.", ) demo.launch() # Opens http://localhost:7860 ``` ## Chat Interface ```python # chatbot.py — Build a chatbot UI with streaming responses import gradio as gr from openai import OpenAI client = OpenAI() def chat(message: str, history: list) -> str: messages = [{"role": "system", "content": "You are a helpful assistant."}] for h in history: messages.append({"role": "user", "content": h[0]}) if h[1]: messages.append({"role": "assistant", "content": h[1]}) messages.append({"role": "user", "content": message}) response = client.chat.completions.create( model="gpt-4", messages=messages, stream=True, ) partial = "" for chunk in response: if chunk.choices[0].delta.content: partial += chunk.choices[0].delta.content yield partial d
- Installation
- Quick Start — Simple Interface
- Chat Interface
- Image Classification
- Blocks API (Custom Layouts)
- File Upload and Download
- Authentication and Sharing
- Deploy to Hugging Face Spaces
- API Access
- Key Concepts
Install Gradio pip install gradio Create a Space on Hugging Face pip install huggingface_hub huggingface-cli repo create my-demo --type space --space-sdk gradio Clone and push git clone https://huggingface.co/spaces/username/my-demo cd my-demo Add app.py and requirements.txt, then push git add . && git commit -m "Initial demo" && git push
What does the gradio skill do?
Python library for building ML demo UIs with minimal code. Create interactive web interfaces for models with text, image, audio, and video inputs/outputs. Share demos via public links or deploy to Hugging Face Spaces.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gradio --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
