Files
llm_web/run-local-llm.ps1

11 lines
369 B
PowerShell

$ErrorActionPreference = "Stop"
$env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
if (-not (Test-Path ".\.venv\Scripts\python.exe")) {
python -m venv .venv
}
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe .\local_llm_chat.py