ACCC1380's picture
Upload lora-scripts/run_gui.ps1 with huggingface_hub
42c7cbc verified
raw
history blame
523 Bytes
$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