Spaces:
Sleeping
Sleeping
metadata
title: Gradio Docs Chat
emoji: π€
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.44.1
app_file: app.py
pinned: false
π€ Gradio Docs Chat
A powerful chat interface for Gradio documentation, powered by OpenAI GPT-OSS-20B with MCP (Model Context Protocol) integration.
β¨ Features
- π§ GPT-OSS-20B: Advanced reasoning with harmony format
- π§ MCP Integration: Real-time access to Gradio documentation
- π Live Tool Logs: See what tools are being used
- π Citations: Track sources and references
- βοΈ Answer Styles: Choose between concise or detailed responses
- π Streaming: Real-time response streaming
π How to Use
- Ask Questions: Type your Gradio-related questions
- Choose Style: Select "Concise" or "Detailed" response style
- Watch Tools: See live tool activity in the side panel
- Check Sources: View citations and references
π§ Configuration
Space Secrets (Optional)
Set these in your Space settings for customization:
HUGGING_FACE_HUB_TOKEN
orHF_TOKEN
: For model accessCHAT_MODEL
: Model is hardcoded toopenai/gpt-oss-20b
CHAT_PROVIDER
: Model provider (default:auto
)GRADIO_DOCS_MCP_SSE
: MCP server URL
ποΈ Architecture
- Frontend: Gradio Blocks with streaming chat interface
- Backend: GPT-OSS-20B with transformers pipeline
- MCP: Gradio Docs MCP server for documentation access
- Deployment: Hugging Face Spaces
π¦ Dependencies
gradio>=5.0.0
: Web interfacetransformers>=4.40.0
: Model loading and inferencehuggingface_hub>=0.34.0
: MCP clienttorch>=2.0.0
: PyTorch backendaccelerate>=0.20.0
: Model acceleration
π― Example Questions
- "How do I create a simple Gradio interface?"
- "What are the different input components available?"
- "How can I add custom CSS to my Gradio app?"
- "Explain the difference between Blocks and Interface"
- "How do I deploy my Gradio app to Hugging Face Spaces?"
π Links
π License
This project is open source and available under the Apache 2.0 license.