import socket
SERVER_IP = "172.17.3.91"
PORT = 8888
def send_message(message):
reply = None
try:
sock = socket.socket()
sock.connect((SERVER_IP, PORT))
sock.send(message.encode())
reply = sock.recv(1024).decode()
except Exception as e:
reply = str(e)
finally:
sock.close()
return reply
For example, if you wish to start classifying with $k = 3$ and a project
you created called avoid
, you would send: