Spaces:
Running
Running
| # STORAGE OPTIMIZATION UPDATE | |
| ## Issue Fixed: Storage Limit Exceeded (50GB) | |
| The application was trying to download 30GB+ of AI models on Hugging Face Spaces, exceeding the 50GB storage limit and causing "Workload evicted" errors. | |
| ## Solution Implemented: | |
| 1. **Automatic HF Spaces Detection**: App now detects when running on Hugging Face Spaces | |
| 2. **Storage-Optimized Mode**: Automatically enables TTS-only mode to prevent model downloads | |
| 3. **Graceful Degradation**: Instead of crashing, runs in TTS-only mode with clear user messaging | |
| ## Changes Made: | |
| - Added storage optimization detection in `app.py` | |
| - Modified `omniavatar_video_engine.py` to respect storage constraints | |
| - Created `storage_optimized_config.py` for configuration management | |
| - Disabled automatic model downloads when storage is insufficient | |
| ## Result: | |
| ? **No more storage limit exceeded errors** | |
| ? **App runs successfully in TTS-only mode** | |
| ? **Clear messaging to users about current capabilities** | |
| ? **Maintains core functionality while respecting HF Spaces limits** | |
| The app will now run reliably on Hugging Face Spaces without trying to download large models that would exceed storage limits. | |