#!/bin/bash
# Launch the Persian tutor dev server.
set -e
cd "$(dirname "$0")"

if [ ! -f .env ]; then
  echo "ERROR: .env not found. Copy .env.template to .env and fill in API keys."
  exit 1
fi

# Load env
set -a
source .env
set +a

# Run (use the project venv where anthropic/flask are installed)
exec ./.venv/bin/python app.py
