File size: 523 Bytes
42c7cbc b437075 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
$Env:HF_HOME = "huggingface"
$Env:PYTHONUTF8 = "1"
if (Test-Path -Path "venv\Scripts\activate") {
Write-Host -ForegroundColor green "Activating virtual environment..."
.\venv\Scripts\activate
}
elseif (Test-Path -Path "python\python.exe") {
Write-Host -ForegroundColor green "Using python from python folder..."
$py_path = (Get-Item "python").FullName
$env:PATH = "$py_path;$env:PATH"
}
else {
Write-Host -ForegroundColor Blue "No virtual environment found, using system python..."
}
python gui.py |