chatbotAPI / CreateEnv.ps1
dhruv4023's picture
Synced repo using 'sync_with_huggingface' Github Action
f37ceb5 verified
raw
history blame
No virus
458 Bytes
# Set the project directory and virtual environment name
$venvName = "venv"
# Check if the virtual environment folder exists
$venvExists = Test-Path ($venvName)
if (-not $venvExists) {
# Create virtual environment if it doesn't exist
Write-Host "Creating virtual environment..."
python -m venv $venvName
}
Write-Host "Activate venv"
& venv\Scripts\Activate.ps1
Write-Host "Installing dependencies..."
python -m pip install -r "requirements.txt"