File size: 927 Bytes
346df5a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
30
31
32
33
34
35
36
37
38
#!/bin/bash

echo "=== Nigerian TTS API Startup ==="
echo "Python version: $(python --version)"
echo "Working directory: $(pwd)"
echo "Available files:"
ls -la

echo "=== Environment Check ==="
echo "HF_HOME: $HF_HOME"
echo "TORCH_HOME: $TORCH_HOME"

echo "=== Checking model files ==="
if [ -d "models" ]; then
    echo "Models directory contents:"
    ls -la models/
else
    echo "Models directory not found, creating..."
    mkdir -p models
fi

echo "=== Checking yarngpt installation ==="
python -c "
try:
    from yarngpt import YarnGPT
    print('✅ yarngpt successfully imported')
except ImportError as e:
    print(f'❌ yarngpt import failed: {e}')
    
try:
    import outetts
    print('✅ outetts successfully imported')
except ImportError as e:
    print(f'❌ outetts import failed: {e}')
"

echo "=== Starting Nigerian TTS API server ==="
python -m uvicorn main:app --host 0.0.0.0 --port 7860 --log-level info