#!/bin/bash
# Run the Qwen3-TTS server

set -e

cd "$(dirname "$0")"

# Activate virtual environment if it exists
if [ -d ".venv" ]; then
    source .venv/bin/activate
fi

# Use exec to replace shell with python so Ctrl+C works properly
exec python server.py
