File size: 602 Bytes
55df3a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# startup.sh - BackgroundFX Pro startup script
# Sets environment variables before Python starts to avoid libgomp errors

# Set OpenMP threads BEFORE Python starts
export OMP_NUM_THREADS=4
export MKL_NUM_THREADS=4

# Optional: Set other environment variables
export PYTHONUNBUFFERED=1
export GRADIO_SERVER_NAME="0.0.0.0"
export GRADIO_SERVER_PORT="7860"

# Log the environment settings
echo "===== BackgroundFX Pro Starting ====="
echo "OMP_NUM_THREADS=$OMP_NUM_THREADS"
echo "MKL_NUM_THREADS=$MKL_NUM_THREADS"
echo "================================="

# Start the application
python app.py