Spaces:
Running
Running
File size: 4,079 Bytes
7bdbd56 a51de86 d8e8b3f 7bdbd56 83541a1 7bdbd56 a51de86 747f6bf 337c65e 7bdbd56 a51de86 7bdbd56 a51de86 7bdbd56 a51de86 7bdbd56 a51de86 7bdbd56 a51de86 7bdbd56 a51de86 7bdbd56 a51de86 7bdbd56 a51de86 7bdbd56 9ad9eac a51de86 7bdbd56 a51de86 7bdbd56 a51de86 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
---
title: ChatUI Helper
emoji: π¬
colorFrom: gray
colorTo: red
sdk: gradio
sdk_version: 5.43.1
app_file: app.py
pinned: true
license: gpl-3.0
short_description: Create AI chat interfaces for HuggingFace Spaces
thumbnail: >-
https://cdn-uploads.huggingface.co/production/uploads/65a0caa15dfd8b9b1f3aa3d3/uTPnm-wnLUt3m6dAvwqKT.png
---
# ChatUI Helper
A comprehensive tool for creating, configuring, and deploying customizable AI chat interfaces on HuggingFace Spaces. Designed for educators and developers to quickly generate pedagogically-focused AI assistants.
## π― Key Features
### Configuration & Templates
- **Academic Templates**: Pre-configured templates for educational use cases
- Socratic Research Chat
- STEM Adventure Games
- Course Assistant Example
- Language Learning Partner
- **Custom Configuration**: Build from scratch with full control
- **Multi-Language Support**: Configure assistants to respond in any language
- **Theme Selection**: Choose from Gradio themes (Default, Soft, Glass, Monochrome, Base)
### URL Grounding & Context
- **Grounding URLs**: Add up to 10 reference URLs for contextual responses
- Primary sources (URLs 1-2): 8000 character limit
- Secondary sources (URLs 3+): 2500 character limit
- **Dynamic URL Extraction**: Automatically fetch content from URLs in user messages
- **Smart Content Processing**: HTML parsing with BeautifulSoup
### Security & Access Control
- **Access Codes**: Password-protect your Space for controlled access
- **API Key Management**: Secure handling of OpenRouter API keys
- **HuggingFace Token Integration**: Enable configuration updates without redeployment
### Preview & Testing
- **Live Preview**: Test your assistant before deployment
- **Real-time Configuration**: See changes instantly
- **File Upload Support**: Test document processing capabilities
- **Conversation Export**: Download chat history as markdown
## π¦ Generated Space Contents
Each generated package includes:
- **app.py**: Complete Gradio 5.x application
- **requirements.txt**: All necessary dependencies
- **config.json**: Your configuration settings
- **README.md**: Deployment instructions
### Supported Models
Through OpenRouter integration:
- Google Gemini (Flash, Pro)
- OpenAI GPT-4, GPT-3.5
- Anthropic Claude 3 series
- Meta Llama 3 models
- Mistral/Mixtral models
- DeepSeek reasoning models
- Nvidia Llama optimizations
- Qwen multilingual models
## π Documentation
### [π Full Documentation](docs.md)
Complete step-by-step guide with screenshots and detailed instructions.
The application includes comprehensive built-in documentation:
- **Step 1**: Configure & Preview Your Space
- Templates & Identity
- System Configuration
- Example Prompts
- URL Grounding
- API Configuration
- Upload Configuration
- Preview Testing
- **Step 2**: Generate & Deploy
- Package Generation
- Space Creation
- File Upload
- Secret Configuration
- Verification & Iteration
- **Troubleshooting**: Common issues and solutions
- **Additional Resources**: Links to relevant documentation
### File Structure
```
chatui-helper/
βββ app.py # Main application
βββ space_template.py # Template for generated spaces
βββ utils.py # Shared utilities
βββ support_docs.py # Documentation interface
βββ academic_templates.json # Pre-configured templates
βββ requirements.txt # Dependencies
βββ CLAUDE.md # Development guidance
```
## π€ Contributing
This project is designed for educational use. Contributions that enhance pedagogical value are welcome:
- New academic templates
- Improved documentation
- Bug fixes and optimizations
- Accessibility improvements
## π License
GPL-3.0 - See LICENSE file for details
## π Links
- [HuggingFace Spaces Documentation](https://huggingface.co/docs/hub/spaces-overview)
- [Gradio Documentation](https://gradio.app/docs/)
- [OpenRouter API](https://openrouter.ai/)
---
Built with β€οΈ for educators and learners |