diff --git a/docker-compose.yml b/docker-compose.yml index 1ae1eaf..e94ef36 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,8 @@ services: - elasticmq volumes: - ./:/app + ports: + - "8000:8000" elasticmq: image: softwaremill/elasticmq hostname: presto-elasticmq diff --git a/local.env b/local.env index cb4e7c6..b9c2b3e 100644 --- a/local.env +++ b/local.env @@ -1,4 +1,6 @@ +PRESTO_PORT=8000 DEPLOY_ENV=local -MODEL_NAME=mean_tokens.Model +# MODEL_NAME=mean_tokens.Model +MODEL_NAME=audio.Model AWS_ACCESS_KEY_ID=SOMETHING AWS_SECRET_ACCESS_KEY=OTHERTHING diff --git a/start_all.sh b/start_all.sh index f3c9197..eb4eaf5 100755 --- a/start_all.sh +++ b/start_all.sh @@ -1,9 +1,9 @@ #!/bin/sh # Start the first process in the background -uvicorn main:app --host 0.0.0.0 --reload & +uvicorn main:app --host 0.0.0.0 --port ${PRESTO_PORT} --reload & # Start the second process in the foreground # This will ensure the script won't exit until this process does -python run_worker.py & +python run_worker.py & python run_processor.py \ No newline at end of file