#!/bin/bash set -e echo "=== Urdu TTS API startup ===" # Step 1: Download models to /tmp/models and create ./models symlink echo "[1/2] Downloading models (skipped if already cached)..." python download_models.py # Step 2: Start the FastAPI server echo "[2/2] Starting uvicorn..." exec uvicorn main:app --host 0.0.0.0 --port 7860