training fixes

This commit is contained in:
Dobromir Popov
2025-11-17 21:05:06 +02:00
parent 259ee9b14a
commit a8d59a946e
4 changed files with 119 additions and 60 deletions

View File

@@ -477,11 +477,11 @@ class AnnotationDashboard:
engineio_logger=False
)
self.has_socketio = True
logger.info("SocketIO initialized for real-time updates")
logger.info("SocketIO initialized for real-time updates")
except ImportError:
self.socketio = None
self.has_socketio = False
logger.warning("⚠️ flask-socketio not installed - live updates will use polling")
logger.warning("flask-socketio not installed - live updates will use polling")
# Suppress werkzeug request logs (reduce noise from polling endpoints)
werkzeug_logger = logging.getLogger('werkzeug')
@@ -2202,10 +2202,10 @@ class AnnotationDashboard:
logger.info(f"Starting Annotation Dashboard on http://{host}:{port}")
if self.has_socketio:
logger.info("Running with WebSocket support (SocketIO)")
logger.info("Running with WebSocket support (SocketIO)")
self.socketio.run(self.server, host=host, port=port, debug=debug, allow_unsafe_werkzeug=True)
else:
logger.warning("⚠️ Running without WebSocket support - install flask-socketio for live updates")
logger.warning("Running without WebSocket support - install flask-socketio for live updates")
self.server.run(host=host, port=port, debug=debug)