This error occurs when the client is unable to connect to the server. In this case, the client is trying to connect to a server running on the same machine (localhost) on port 8080, but given that you only ran the second code snippet the client has no server host to connect to resulting in `ConnectionRefusedError`.

You should ensure that the server is running and listening on the specified port. Also, check that there are no firewall or network issues that might be preventing the connection.
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence