diff --git a/Data/server.py b/Data/server.py index bdfe17b..a988eef 100644 --- a/Data/server.py +++ b/Data/server.py @@ -11,7 +11,7 @@ if not os.path.exists(build_folder): print("WARNING: web-interface build folder not found. Please build your React app.") app = Flask(__name__, static_folder=build_folder, static_url_path="/") -socketio = SocketIO(app, cors_allowed_origins="*") # Allow cross-origin WebSocket connections +socketio = SocketIO(app, cors_allowed_origins="*", transports=['websocket']) @app.route("/") def serve_index(): diff --git a/Launch-Borealis.ps1 b/Launch-Borealis.ps1 index 28987c7..6932afa 100644 --- a/Launch-Borealis.ps1 +++ b/Launch-Borealis.ps1 @@ -65,7 +65,7 @@ switch ($choice) { # ---------------------- Server Module ---------------------- "1" { Clear-Host - Write-Host "Deploying Borealis - Workflow Automation Tool..." -ForegroundColor Green + Write-Host "Deploying Borealis - Workflow Automation Tool..." -ForegroundColor Blue Write-Host "====================================================================================" # ---------------------- Server: Environment & Dependency Checks ---------------------- @@ -161,7 +161,7 @@ switch ($choice) { # ---------------------- Agent Module ---------------------- "2" { Clear-Host - Write-Host "Deploying Borealis Agent..." -ForegroundColor Green + Write-Host "Deploying Borealis Agent..." -ForegroundColor Blue Write-Host "====================================================================================" # ---------------------- Agent: Path Definitions ---------------------- @@ -202,7 +202,7 @@ switch ($choice) { # ---------------------- Agent: Launch Agent Script ---------------------- Push-Location $venvFolder - Write-Host "`nLaunching Borealis Agent..." -ForegroundColor Green + Write-Host "`nLaunching Borealis Agent..." -ForegroundColor Blue Write-Host "====================================================================================" python "Agent\borealis-agent.py" Pop-Location diff --git a/requirements.txt b/requirements.txt index 6ee9873..d26bad4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,9 +3,11 @@ torch --index-url https://download.pytorch.org/whl/cu121 torchvision --index-url https://download.pytorch.org/whl/cu121 torchaudio --index-url https://download.pytorch.org/whl/cu121 -# Flask for API Hhandling +# Flask for API / WebSockets Handling Flask requests +flask_socketio +eventlet # GUI-related dependencies (Qt for GUI components) Qt.py