Spaces:
Paused
Paused
Commit History
-
Fix SessionState field name in samples.py
Replace deprecated tab1/2/3_complete fields with input_complete to match simplified SessionState model. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>6fc2368 -
Fix Gradio 6.x Chatbot API: remove deprecated 'type' parameter
The 'type' parameter was removed in Gradio 6.x - messages format is now default. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>fbf7e70 -
Frontend simplification (4→2 tabs) + lazy imports for HF Spaces
Major changes: - Consolidate 4 tabs into 2: Input (room+images+observations) and Results+Chat - Add chat interface for Q&A and document modifications (pipeline/chat.py) - Lazy imports throughout to defer chromadb until needed - Auto-build RAG index on startup if empty - Default mock_models=False for production Files added: - ui/tabs/input_tab.py: Combined input tab with accordions - ui/tabs/results_tab.py: Results display with chat interface - pipeline/chat.py: Chat handler using vision model in text-only mode Import chain fixes (HF Spaces compatibility): - pipeline/__init__.py: __getattr__ lazy imports - rag/__init__.py: __getattr__ lazy imports - pipeline/main.py, dispositions.py, generator.py: TYPE_CHECKING + deferred imports - rag/retriever.py: Lazy vectorstore import in __init__ FDAM methodology fixes: - Public/Childcare lead threshold: 4.3 → 0.54 µg/100cm² (FDAM §1.4) - Sample density tiers for large areas (FDAM §2.3) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>78caafb -
Reduce thinking model max_new_tokens to fix slow inference
Root cause: max_new_tokens=32768 caused ~27 min inference time, appearing as a "hang". Reduced to 8192 for ~7 min thinking stage. The device mismatch warning is expected behavior - transformers handles routing internally for device_map="auto" models. Also includes ruff auto-fixes for unused imports. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>0699c5f
-
MVP UI simplification: single room, 4 tabs
- Remove Project Info tab and ProjectFormData - Change from multi-room to single room (session.room) - Move facility_classification and construction_era to RoomFormData - Simplify from 5 tabs to 4: Room, Images, Observations, Results - Delete all test files (testing on HuggingFace due to GPU/ChromaDB) - Update pipeline files to use session.room - Update samples and documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>3b08f11 -
Fix critical model implementations and add sample scenarios
Model Fixes (verified against official Qwen3-VL-Embedding repo): - Embedding: Use last-token pooling instead of mean pooling - Embedding: Fix dimension from 768/384 to 4096 - Reranker: Use yes/no LM head weights + sigmoid instead of CLS norm - Apply fixes in both models/real.py and rag/vectorstore.py Additional Changes: - Add sample scenarios with real fire damage images - Add E2E tests with Playwright - Fix Gradio 6.x tab navigation tests - Add logging configuration - Improve UI form handling All 179 unit tests pass. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>f3ebc82 -
Initial commit: FDAM AI Pipeline v4.0.1
- Gradio-based fire damage assessment application - Qwen3-VL vision model integration (mock + real) - RAG-based knowledge retrieval with ChromaDB - FDAM-compliant calculations (ACH, sample density) - PDF generation with WeasyPrint - Session persistence via localStorage - 151 passing tests Ready for HuggingFace Spaces deployment on 4xL4 (96GB VRAM) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>88bdcff