port = args.port
model_path = args.model_path
logging.basicConfig(format="%(asctime)s : %(levelname)s : %(message)s", level=logging.DEBUG)
logger = logging.getLogger("set_expantion_demo")
logger.debug("initialize model\n")
se = set_expand.SetExpand(model_path)
logger.debug("loading server\n")
HOST, PORT = args.host, port
server = socketserver.TCPServer((HOST, PORT), MyTCPHandler)
logger.debug("server loaded\n")
server.serve_forever()
After Change
port = args.port
model_path = args.model_path
print("loading model")
se = set_expand.SetExpand(model_path)
print("loading server")
HOST, PORT = args.host, port
server = socketserver.TCPServer((HOST, PORT), MyTCPHandler)