route optimizer agent with dailygrubs ai assign
This commit is contained in:
8
main.py
8
main.py
@@ -151,6 +151,11 @@ async def _graceful_shutdown(system: LogiFlowAI):
|
||||
t.cancel()
|
||||
|
||||
|
||||
def command_center_mode():
|
||||
from dashboard.command_center import run
|
||||
run()
|
||||
|
||||
|
||||
async def dashboard_mode():
|
||||
import subprocess
|
||||
logger.info("Launching Admin Dashboard at http://localhost:8501")
|
||||
@@ -175,6 +180,8 @@ def main():
|
||||
cmd = sys.argv[1]
|
||||
if cmd == "--production":
|
||||
asyncio.run(production_mode())
|
||||
elif cmd == "--command-center":
|
||||
command_center_mode()
|
||||
elif cmd == "--dashboard":
|
||||
asyncio.run(dashboard_mode())
|
||||
elif cmd == "--portal":
|
||||
@@ -192,6 +199,7 @@ LogiFlow AI - Autonomous Logistics Agent System
|
||||
|
||||
Usage:
|
||||
python main.py --production Connect to NATS/Redis/Postgres and run forever
|
||||
python main.py --command-center Launch JARVIS-style live Command Center (port 8600)
|
||||
python main.py --dashboard Launch Streamlit admin dashboard
|
||||
python main.py --portal Launch Streamlit customer portal
|
||||
python main.py --help Show this help
|
||||
|
||||
Reference in New Issue
Block a user