Spaces:
Running
Running
Commit History
-
feat: implement cross-mode robustness fixes (phases 1-8)
Complete implementation of all core robustness improvements: Phase 1-2: Infrastructure - Add ErrorReport TypedDict for structured error handling - Add ProgressCallback type alias and stage constants - Configure SSL globally using certifi - Update HuggingFace API to use 'token' parameter Phase 3: Reliable Progress Reporting (US1) - Standardize float-based (0.0-1.0) progress callbacks - Update all services to emit consistent progress - Fix dictionary key access issues across web/CLI - Support both modern and legacy progress formats Phase 4: Consistent Error Handling (US2) - Implement ErrorReport with error_type categorization - Add structured error handling to all services - Generate JSON error reports in web interface - Add rich color-coded error messages in CLI Phase 5: Environment Compatibility (US3) - Verify SSL context for torch.hub and HuggingFace models - Audit all model loading for correct API parameters - Remove invalid ProcessingJob parameters Phase 6: UI State Management …95e1515 -
git commit -m "feat: add HuggingFace ZeroGPU compatibility for
GPU-accelerated inference - Add @spaces.GPU decorators to all inference methods (separation: 90s, extraction: 60s, denoising: 45s) - Implement GPU resource management with automatic CPU/GPU model transfers - Create GPUConfig module for environment detection (ZeroGPU, Spaces, local) - Add GPU utilities for safe resource allocation and cleanup - Ensure GPU cleanup within 2s using try-finally blocks - Update dependencies: spaces>=0.28.3, gradio>=5.49.1, torch>=2.4.0 - Add HuggingFace Spaces deployment configuration (.space/README.md, app.py, requirements.txt) - Maintain backward compatibility with local CPU-only environments Services modified: - src/services/speaker_separation.py - src/services/speaker_extraction.py - src/services/voice_denoising.py Tested and verified on local CPU environment. Ready for HuggingFace Spaces deployment."ffe9fdb