import socket



def Main():
    host='127.0.0.1'
    port=5001

    mySocket= socket.socket()
    mySocket.connect((host,port))


    message= input(">>> ")


    while message !='exit':
        mySocket.send(message.encode())
        
        data=mySocket.recv(1024).decode()
        print('Recieved from natasha bot: '+data)
        
        message = input(">>> ")

    mySocket.close()



if __name__=='__main__':
    Main()



