gradio-doc / README.md
sudipta26889's picture
updated
23672b1
---
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
1. **Ask Questions**: Type your Gradio-related questions
2. **Choose Style**: Select "Concise" or "Detailed" response style
3. **Watch Tools**: See live tool activity in the side panel
4. **Check Sources**: View citations and references
## πŸ”§ Configuration
### Space Secrets (Optional)
Set these in your Space settings for customization:
- `HUGGING_FACE_HUB_TOKEN` or `HF_TOKEN`: For model access
- `CHAT_MODEL`: Model is hardcoded to `openai/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 interface
- `transformers>=4.40.0`: Model loading and inference
- `huggingface_hub>=0.34.0`: MCP client
- `torch>=2.0.0`: PyTorch backend
- `accelerate>=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
- [Gradio Documentation](https://gradio.app/docs/)
- [GPT-OSS-20B Model](https://huggingface.co/openai/gpt-oss-20b)
- [MCP Protocol](https://modelcontextprotocol.io/)
## πŸ“„ License
This project is open source and available under the Apache 2.0 license.