mirror of
https://github.com/steveseguin/caption-local.git
synced 2026-10-09 09:39:32 +00:00
12 lines
446 B
PowerShell
12 lines
446 B
PowerShell
# Run from PowerShell: .\start.ps1 --model base
|
|
$ErrorActionPreference = 'Stop'
|
|
$CaptionLauncher = Join-Path $PSScriptRoot 'deploy.py'
|
|
if (Get-Command py -ErrorAction SilentlyContinue) {
|
|
& py -3.12 $CaptionLauncher run @args
|
|
} elseif (Get-Command python -ErrorAction SilentlyContinue) {
|
|
& python $CaptionLauncher run @args
|
|
} else {
|
|
throw 'Install 64-bit Python 3.12, then open a new PowerShell window and retry.'
|
|
}
|
|
exit $LASTEXITCODE
|