mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-07-27 05:48:28 -06:00
Added Missing WebSockets Dependencies
This commit is contained in:
@ -11,7 +11,7 @@ if not os.path.exists(build_folder):
|
|||||||
print("WARNING: web-interface build folder not found. Please build your React app.")
|
print("WARNING: web-interface build folder not found. Please build your React app.")
|
||||||
|
|
||||||
app = Flask(__name__, static_folder=build_folder, static_url_path="/")
|
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("/")
|
@app.route("/")
|
||||||
def serve_index():
|
def serve_index():
|
||||||
|
@ -65,7 +65,7 @@ switch ($choice) {
|
|||||||
# ---------------------- Server Module ----------------------
|
# ---------------------- Server Module ----------------------
|
||||||
"1" {
|
"1" {
|
||||||
Clear-Host
|
Clear-Host
|
||||||
Write-Host "Deploying Borealis - Workflow Automation Tool..." -ForegroundColor Green
|
Write-Host "Deploying Borealis - Workflow Automation Tool..." -ForegroundColor Blue
|
||||||
Write-Host "===================================================================================="
|
Write-Host "===================================================================================="
|
||||||
|
|
||||||
# ---------------------- Server: Environment & Dependency Checks ----------------------
|
# ---------------------- Server: Environment & Dependency Checks ----------------------
|
||||||
@ -161,7 +161,7 @@ switch ($choice) {
|
|||||||
# ---------------------- Agent Module ----------------------
|
# ---------------------- Agent Module ----------------------
|
||||||
"2" {
|
"2" {
|
||||||
Clear-Host
|
Clear-Host
|
||||||
Write-Host "Deploying Borealis Agent..." -ForegroundColor Green
|
Write-Host "Deploying Borealis Agent..." -ForegroundColor Blue
|
||||||
Write-Host "===================================================================================="
|
Write-Host "===================================================================================="
|
||||||
|
|
||||||
# ---------------------- Agent: Path Definitions ----------------------
|
# ---------------------- Agent: Path Definitions ----------------------
|
||||||
@ -202,7 +202,7 @@ switch ($choice) {
|
|||||||
|
|
||||||
# ---------------------- Agent: Launch Agent Script ----------------------
|
# ---------------------- Agent: Launch Agent Script ----------------------
|
||||||
Push-Location $venvFolder
|
Push-Location $venvFolder
|
||||||
Write-Host "`nLaunching Borealis Agent..." -ForegroundColor Green
|
Write-Host "`nLaunching Borealis Agent..." -ForegroundColor Blue
|
||||||
Write-Host "===================================================================================="
|
Write-Host "===================================================================================="
|
||||||
python "Agent\borealis-agent.py"
|
python "Agent\borealis-agent.py"
|
||||||
Pop-Location
|
Pop-Location
|
||||||
|
@ -3,9 +3,11 @@ torch --index-url https://download.pytorch.org/whl/cu121
|
|||||||
torchvision --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
|
torchaudio --index-url https://download.pytorch.org/whl/cu121
|
||||||
|
|
||||||
# Flask for API Hhandling
|
# Flask for API / WebSockets Handling
|
||||||
Flask
|
Flask
|
||||||
requests
|
requests
|
||||||
|
flask_socketio
|
||||||
|
eventlet
|
||||||
|
|
||||||
# GUI-related dependencies (Qt for GUI components)
|
# GUI-related dependencies (Qt for GUI components)
|
||||||
Qt.py
|
Qt.py
|
||||||
|
Reference in New Issue
Block a user