[server] # The host to bind the socket. Default is '0.0.0.0' # host= # The port to listen. Default is 3000. # port= [docs] # The path for the Swagger UI documentation. If an empty path is # specified, no Swagger UI documentation will be available. Default is # '/docs'. # swagger= # The path for the ReDoc documentation. If an empty path is specified, # no ReDoc documentation will be available. Default is '/redoc'. # redoc= # The path for the Open API API specification. If an empty path is # specified, no API specification will be available. Default is # '/openapi.json'. # Warning: If the API specification is not available, Swagger UI and # ReDoc documentation may not work. # openapi= [model] # The model directory has to include following files: # 'label_encoder.json' (label encoder) # 'language_detector.keras' (model) # 'max_len' (token maximum length) # 'tokenizer.json' (tokenizer) # Default is '', so setting this option is required. # Note: You should specify the absolute path instead of the relative # path (e. g. '/path/to/model/' instead of 'model/') modelDirectory= # If true, TensorFlow will be only imported when it is needed for the # first time, rather than when the server is started. But, this will # slow down the first API request. Default is true. # lazyImport= [cache] # If true, the results are cached. Default is true. # enableCache= # The TTL (time to live) in seconds for items in the cache. Default is # 120. # ttl= # The maximum size of the cache. It specifies how many items can be # cached at the same time. When this limit is exceeded by a new item, # the least used item will be deleted. Default is 256. # maxSize= [logging] # The file for the logs. Default is stdout ('/proc/self/fd/1'). # logfile= # The log level. Default is INFO. # loglevel=