I was unable to connect even after rebooting the ec2 instance
Error: HTTPConnectionPool(host=‘%3cml_model_endpoint_url%3e’, port=80): Max retries exceeded with url: / (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7735858156a0>: Failed to establish a new connection: [Errno -2] Name or service not known’))