chatui-helper / README.md
milwright's picture
Update README.md
83541a1 verified

A newer version of the Gradio SDK is available: 5.44.1

Upgrade
metadata
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

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


Built with ❀️ for educators and learners