Spaces:
Sleeping
Sleeping
Commit History
-
Queue Gradio app to avoid response length errors
김무영d57c0fd -
Set chatbot height to 600px
김무영a487118 -
Fix admin delete result string syntax
김무영c6a1cd4 -
Redesign landing and chat layout
김무영04e8c4c -
Harden landing UI and disable admin when no password
김무영9420ffa -
Improve defaults, security, and index rebuild
김무영cb2a4bd -
Transform main page into professional firefighter administration interface
김무영 +1: Claude🎨 Major UI/UX Overhaul: 🔥 Professional Header Section: - Firefighter-themed gradient design with red color scheme - Large hero title with shadow effects - Trust indicators (24/7, security, accuracy, updates) - Quick action buttons for common tasks - Professional fire department aesthetic 📊 Enhanced Feature Display: - 3-column responsive feature cards with hover effects - Real-time search, source citations, fast response highlights - Professional statistics dashboard with animated boxes - System metrics (100+ docs, 1000+ queries, 95% accuracy, 24/7) 🚀 Improved User Experience: - Step-by-step usage guide in green accent box - Professional chat interface with enhanced placeholder text - Better organized FAQ section with styling - Increased container width to 1200px for better content display 🎯 Visual Hierarchy: - Clear section separation with consistent spacing - Fire department color palette (reds, oranges) - Professional typography and spacing - Responsive grid layouts - Hover …a6a02ef -
Critical fix: Resolve Gradio component type and parameter compatibility issues
김무영 +1: Claude🐛 Critical Bug Fixes: 1. Chatbot type mismatch: Change 'type="messages"' to 'type="tuples"' - Code uses tuple format [user_msg, bot_msg] throughout - "messages" type expects OpenAI format {role: "", content: ""} - This mismatch would cause chat functionality to fail 2. File component height parameter: Remove 'height=120' - Height parameter not supported in newer Gradio versions - Keep essential parameters: file_count, file_types, label 🔧 Root Cause Analysis: - Chatbot event handlers expect tuple format - bot_response() function manipulates history as list of [user, bot] tuples - user_input() appends [message, None] tuples to history - All chat logic built around tuple structure ✅ Compatibility Status: - All deprecated parameters removed - Component types matched to actual usage patterns - Event handlers aligned with component expectations - Ready for Gradio 5.0+ and HuggingFace Spaces 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: …22ead7c -
Fix Gradio Blocks.launch() compatibility - remove show_tips parameter
김무영 +1: Claude🐛 Bug Fix: - Remove deprecated 'show_tips=False' from demo.launch() - Resolves TypeError: Blocks.launch() got an unexpected keyword argument 'show_tips' - Keep essential launch parameters for HuggingFace Spaces 🔧 Compatibility: - Gradio newer versions simplified launch API - Focus on core functionality: share, server_port, server_name, show_error - Remove non-essential display parameters 🚀 Deployment Ready: - All Gradio compatibility issues resolved - Clean, minimal parameter set for stability - Optimized for HuggingFace Spaces environment 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>1ecc14b -
Fix Gradio DataFrame compatibility - remove max_rows parameter
김무영 +1: Claude🐛 Bug Fix: - Remove unsupported 'max_rows' parameter from gr.DataFrame - Keep only essential parameters: headers and datatype - Resolves TypeError in HuggingFace Spaces deployment 🔧 Compatibility: - Gradio newer versions have simplified DataFrame API - Height control achieved through CSS instead of parameters - Focus on core functionality for stability 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>3f36886 -
Fix Gradio compatibility issues and add accelerate library
김무영 +1: Claude🐛 Bug Fixes: - Remove deprecated 'height' parameter from gr.DataFrame - Add 'type="messages"' to gr.Chatbot to resolve deprecation warning - Use 'max_rows=10' and 'wrap=True' for DataFrame instead of height 📦 Dependencies: - Add accelerate>=0.21.0 for LLM model loading support - Fixes 'requires accelerate' error when loading Llama-3 model 🔧 Technical Details: - Gradio DataFrame height parameter deprecated in newer versions - Chatbot type parameter now required for future compatibility - Accelerate library needed for device_map functionality 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>53c5039 -
Add comprehensive admin panel with authentication and file management
김무영 +1: Claude🔐 Admin Features: - Password-protected admin access (default: fireadmin123) - Session management with 1-hour timeout - Secure password hashing with SHA-256 📁 File Management: - Multi-file upload support (PDF, DOCX, TXT, XLSX, CSV) - Document listing with file metadata - File deletion functionality - Real-time document refresh ⚙️ System Administration: - Vector database reconstruction - Live system statistics - Chatbot status monitoring - Operation result feedback 🎨 UI Enhancements: - Tabbed interface (Chat, Admin, Info) - Responsive design with custom CSS - User-friendly feedback messages - Comprehensive usage guide 🔒 Security: - Environment variable configurable password - Authentication status checks - Session timeout protection - Safe filename handling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>cd29095 -
Fix websockets compatibility issue for HuggingFace deployment
김무영 +1: Claude- Add websockets version constraint to requirements.txt (>=11.0.3,<12.0.0) - Add exception handling for OpenAI/Supabase module imports - Fall back to FAISS mode when Supabase modules are unavailable - Update default VECTOR_DB_TYPE to faiss in .env.example for stability This resolves ModuleNotFoundError: No module named 'websockets.asyncio' that occurs during HuggingFace Spaces deployment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>162bfae -
Add clean .env.example template file
Muyeong Kim +1: Claude- Secure template with placeholder values - No sensitive tokens included 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>3190032 -
Clean environment variables and prepare for HuggingFace deployment
Muyeong Kim +1: Claude- Remove actual API tokens from .env and .env.example - Use placeholder values for security compliance - Prepare codebase for HuggingFace Spaces deployment 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>4803a8c -
Upgrade to OpenAI + Supabase RAG Chatbot with enhanced capabilities
Muyeong Kim +1: Claude## Major Features Added: - OpenAI GPT-4o-mini integration for advanced responses - Supabase pgvector cloud database for scalable vector storage - Hybrid support: Choose between FAISS (local) or Supabase (cloud) - OpenAI text-embedding-3-small for improved embeddings - Environment-based configuration system ## New Files: - openai_chatbot.py: OpenAI-powered RAG chatbot - supabase_vector_store.py: Cloud vector database integration - supabase_setup*.sql: Database setup scripts (3 variants) - .env.example: Configuration template - .gitignore: Python and application-specific ignores ## Enhanced Configuration: - Support for multiple vector database backends - OpenAI API key and Supabase credentials - Flexible embedding model selection - Environment variable-based settings ## Bug Fixes: - Fixed LangChain import compatibility issues - Resolved PyMuPDF import problems - Updated to latest package versions 🚀 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude …21480cd -
Update to Gradio 5.0.0 for latest features and performance
Muyeong Kim +1: Claude- Upgrade Gradio from 4.7.1 to 5.0.0 in requirements.txt - Update SDK version in README.md metadata - Remove deprecated Chatbot parameters (show_copy_button, bubble_full_width) - Maintain compatibility with Gradio 5.0 API changes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>adf1fbc -
Fix colorTo: change orange to yellow (supported color)
Muyeong Kim +1: Claude🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>c9c3410 -
Update README.md with HuggingFace Spaces metadata
Muyeong Kim +1: Claude- Add YAML metadata section for proper Spaces configuration - Set appropriate colors (red to orange) for fire service theme - Configure Gradio SDK settings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>f1e2884 -
Merge conflict resolution - keeping new RAG chatbot implementation
Muyeong Kim +1: Claude🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>ad55c24 -
초기 버전: 소방 복무관리 RAG 챗봇
Muyeong Kim +1: Claude주요 기능: - RAG 기반 질의응답 시스템 구현 - 다양한 문서 형식 지원 (PDF, Word, TXT, Excel) - 한국어 임베딩 모델 최적화 (jhgan/ko-sbert-nli) - FAISS 벡터 데이터베이스 활용한 고성능 검색 - Gradio 기반 웹 인터페이스 - 허깅페이스 Spaces 배포 최적화 - 샘플 복무관리 문서 포함 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>8211554 -
initial commit
0ed74d5 -
Duplicate from gradio-templates/chatbot
Co-authored-by: Pete <pngwn@users.noreply.huggingface.co>29e3dcc