#!/bin/bash

echo "========================================"
echo "  Soprano + RVC Streaming API"
echo "========================================"
echo ""

# Check if virtual environment exists
if [ ! -d ".venv" ]; then
    echo "✗ Virtual environment not found"
    echo "Please run setup first"
    exit 1
fi

echo "✓ Virtual environment found"

# Activate virtual environment
source .venv/bin/activate

echo "Starting Soprano + RVC Streaming API..."
echo "Models will load on first request (15-20 seconds)"
echo ""

# Run the API
python soprano_rvc_api.py
