| $ErrorActionPreference = "Stop" | |
| $root = Split-Path -Parent $PSScriptRoot | |
| Set-Location $root | |
| $env:GRADIO_SERVER_NAME = "127.0.0.1" | |
| if (-not $env:GRADIO_SERVER_PORT) { | |
| $env:GRADIO_SERVER_PORT = "7860" | |
| } | |
| & (Join-Path $root ".venv312\python.exe") (Join-Path $root "app.py") | |