#!/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