Commit bd05d6f7 authored by Yoann HOUPERT's avatar Yoann HOUPERT

add Dockerisation of offline decoding

parent 0fb8ac2d
......@@ -27,6 +27,8 @@ TEMP_FILE_PATH = server_settings.get('machine_params', 'temp_file_location')
KEEP_TEMP_FILE = True if server_settings.get('server_params', 'keep_temp_files') == 'true' else False
LOGGING_LEVEL = logging.DEBUG if server_settings.get('server_params', 'debug') == 'true' else logging.INFO
if "OFFLINE_PORT" in os.environ:
SERVER_PORT = os.environ['OFFLINE_PORT']
class Application(tornado.web.Application):
def __init__(self):
......
[server_params]
server_ip : 10.31.4.100
server_ip : offline-server
server_port : 8888
server_target : /worker/ws/speech
[worker_params]
temp_file_location : wavs/
decoder_command : "./scripts/decode.sh systems/models"
preprocessing : true
\ No newline at end of file
preprocessing : true
......@@ -28,6 +28,9 @@ DECODER_COMMAND = worker_settings.get('worker_params', 'decoder_command')
TEMP_FILE_PATH = worker_settings.get('worker_params', 'temp_file_location')
PREPROCESSING = True if worker_settings.get('worker_params', 'preprocessing') == 'true' else False
if "OFFLINE_PORT" in os.environ:
SERVER_PORT = os.environ['OFFLINE_PORT']
class NoRouteException(Exception):
pass
class ConnexionRefusedException(Exception):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment