fixes around pivot points and BOM matrix
This commit is contained in:
13
main.py
13
main.py
@ -142,6 +142,19 @@ def start_web_ui(port=8051):
|
||||
config = get_config()
|
||||
data_provider = DataProvider()
|
||||
|
||||
# Start real-time streaming for BOM caching (non-blocking)
|
||||
try:
|
||||
import threading
|
||||
def start_streaming():
|
||||
import asyncio
|
||||
asyncio.run(data_provider.start_real_time_streaming())
|
||||
|
||||
streaming_thread = threading.Thread(target=start_streaming, daemon=True)
|
||||
streaming_thread.start()
|
||||
logger.info("[SUCCESS] Real-time streaming thread started for dashboard")
|
||||
except Exception as e:
|
||||
logger.warning(f"[WARNING] Dashboard streaming setup failed: {e}")
|
||||
|
||||
# Load model registry for enhanced features
|
||||
try:
|
||||
from models import get_model_registry
|
||||
|
Reference in New Issue
Block a user