refactoring, predictions WIP
This commit is contained in:
41
run_cnn_dashboard.py
Normal file
41
run_cnn_dashboard.py
Normal file
@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
CNN Dashboard Runner
|
||||
|
||||
Simple script to launch the CNN trading dashboard with proper error handling.
|
||||
"""
|
||||
|
||||
import logging
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Setup logging with ASCII-only output
|
||||
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def main():
|
||||
"""Main entry point for CNN dashboard"""
|
||||
try:
|
||||
# Import and run dashboard
|
||||
from web.cnn_dashboard import CNNTradingDashboard
|
||||
|
||||
logger.info("Initializing CNN Trading Dashboard...")
|
||||
dashboard = CNNTradingDashboard()
|
||||
|
||||
logger.info("Starting dashboard server...")
|
||||
dashboard.run(host='127.0.0.1', port=8050, debug=False)
|
||||
|
||||
except ImportError as e:
|
||||
logger.error(f"Import error - missing dependencies: {e}")
|
||||
logger.error("Please ensure all required packages are installed")
|
||||
sys.exit(1)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
logger.info("Dashboard stopped by user")
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error running CNN dashboard: {e}")
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Reference in New Issue
Block a user