-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.ps1
More file actions
38 lines (32 loc) Β· 1.21 KB
/
start.ps1
File metadata and controls
38 lines (32 loc) Β· 1.21 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
36
37
38
# Messenger AI Assistant - PowerShell Launcher
# Run with: powershell -ExecutionPolicy Bypass -File start.ps1
Write-Host "π Messenger AI Assistant" -ForegroundColor Green
Write-Host "=========================" -ForegroundColor Green
# Check if Python is available
try {
$pythonVersion = python --version 2>&1
Write-Host "β
$pythonVersion" -ForegroundColor Green
} catch {
Write-Host "β Python not found. Please install Python 3.8+ and try again." -ForegroundColor Red
Read-Host "Press Enter to exit"
exit 1
}
# Check if we're in the right directory
if (-not (Test-Path "assist")) {
Write-Host "β Please run this script from the project root directory" -ForegroundColor Red
Read-Host "Press Enter to exit"
exit 1
}
# Check dependencies
Write-Host "π Checking dependencies..." -ForegroundColor Yellow
try {
python -c "import fastapi, uvicorn, cv2, mss, sounddevice" 2>$null
Write-Host "β
Dependencies found" -ForegroundColor Green
} catch {
Write-Host "β οΈ Some dependencies missing. Installing..." -ForegroundColor Yellow
python setup.py
}
# Start the system
Write-Host "π Starting system..." -ForegroundColor Green
python start.py
Read-Host "Press Enter to exit"