fix models loading /saving issue
This commit is contained in:
@@ -80,6 +80,7 @@ def run_dashboard_with_recovery():
|
||||
from core.orchestrator import TradingOrchestrator
|
||||
from core.trading_executor import TradingExecutor
|
||||
from web.clean_dashboard import create_clean_dashboard
|
||||
from data_stream_monitor import get_data_stream_monitor
|
||||
|
||||
logger.info("Creating data provider...")
|
||||
data_provider = DataProvider()
|
||||
@@ -95,13 +96,26 @@ def run_dashboard_with_recovery():
|
||||
|
||||
logger.info("Creating clean dashboard...")
|
||||
dashboard = create_clean_dashboard(data_provider, orchestrator, trading_executor)
|
||||
|
||||
|
||||
# Initialize data stream monitor for model input capture
|
||||
logger.info("Initializing data stream monitor...")
|
||||
data_stream_monitor = get_data_stream_monitor(
|
||||
orchestrator=orchestrator,
|
||||
data_provider=data_provider,
|
||||
training_system=getattr(orchestrator, 'training_manager', None)
|
||||
)
|
||||
|
||||
# Start data streaming (this will output to console)
|
||||
logger.info("Starting data stream monitoring...")
|
||||
data_stream_monitor.start_streaming()
|
||||
|
||||
logger.info("Dashboard created successfully")
|
||||
logger.info("=== Clean Trading Dashboard Status ===")
|
||||
logger.info("- Data Provider: Active")
|
||||
logger.info("- Trading Orchestrator: Active")
|
||||
logger.info("- Trading Executor: Active")
|
||||
logger.info("- Enhanced Training: Active")
|
||||
logger.info("- Data Stream Monitor: Active")
|
||||
logger.info("- Dashboard: Ready")
|
||||
logger.info("=======================================")
|
||||
|
||||
|
Reference in New Issue
Block a user