-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_web.ps1
More file actions
35 lines (30 loc) · 1.34 KB
/
start_web.ps1
File metadata and controls
35 lines (30 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$ErrorActionPreference = "Stop"
Write-Host "========================================" -ForegroundColor Green
Write-Host " Vaani Web Interface Launcher" -ForegroundColor Green
Write-Host "========================================" -ForegroundColor Green
Write-Host ""
if (Test-Path ".venv\Scripts\Activate.ps1") {
Write-Host "Activating virtual environment..." -ForegroundColor Cyan
& .\.venv\Scripts\Activate.ps1
}
else {
Write-Host "Virtual environment not found." -ForegroundColor Yellow
Write-Host "Creating virtual environment..." -ForegroundColor Yellow
python -m venv .venv
Write-Host "Virtual environment created." -ForegroundColor Green
& .\.venv\Scripts\Activate.ps1
Write-Host "Installing dependencies..." -ForegroundColor Yellow
pip install -r requirements.txt
Write-Host "Dependencies installed." -ForegroundColor Green
}
Write-Host ""
Write-Host "========================================" -ForegroundColor Green
Write-Host " Starting Vaani Web Server..." -ForegroundColor Green
Write-Host "========================================" -ForegroundColor Green
Write-Host ""
Write-Host "Web interface will be available at:" -ForegroundColor Cyan
Write-Host "http://localhost:5000" -ForegroundColor Yellow
Write-Host ""
Write-Host "Press Ctrl+C to stop the server" -ForegroundColor Gray
Write-Host ""
python -m vaani.web