Spaces:
Running on Zero

raylim commited on
Commit
c96b0f8
·
unverified ·
1 Parent(s): a15a72c

Fix invalid OMP_NUM_THREADS environment variable

Browse files

- Check for empty, zero, or negative OMP_NUM_THREADS values
- Set to reasonable default (half of CPU count, min 1, max 8)
- Prevents 'Invalid value for environment variable' error on startup
- Ensures OpenMP libraries can initialize properly

1 file changed +9
app.py+9