def __init__(self, model, port=4000):
        """Initializes a Socket server instance from a serializer Keras model
        and a port to listen to.

        :param model: Serialized Keras model
        :param port: int, port to run the socket on
        """

        self.model = dict_to_model(model)
        self.port = port
        self.socket = None
        self.runs = False
        self.connections = []
        self.lock = Lock()
        self.thread = None
def __init__ ( self , model , port = 4000 ) : self . model = dict_to_model ( model ) self . port = port self . socket = None self . runs = False self . connections = [ ] self . lock = Lock ( ) self . thread = None
Initializes a Socket server instance from a serializer Keras model
        and a port to listen to.

        :param model: Serialized Keras model
        :param port: int, port to run the socket on