$ErrorActionPreference = 'Stop'
$Root = Split-Path -Parent $PSScriptRoot
$Python = Join-Path $Root '.venv\Scripts\python.exe'
if (!(Test-Path $Python)) {
  & (Join-Path $PSScriptRoot 'setup.ps1')
}
& $Python -m pdf_to_md_local.server --host 127.0.0.1 --port 8765

