File size: 1,177 Bytes
9da4439
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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.