Hello, Thank you for sharing this code
I get this error when running train.py
HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000024E9E535048>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))