Commit 48f4951f authored by Jim Hoekstra's avatar Jim Hoekstra 👋🏻
Browse files

1 worker instead of 4 solves timeout problem, I hope

parent 18aa936a
Pipeline #19244 canceled with stage
in 0 seconds
......@@ -5,6 +5,7 @@ RUN useradd --create-home -r -g msx_user msx_user
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt
......@@ -19,4 +20,4 @@ RUN python scripts/download_model.py
COPY . /app
ENTRYPOINT gunicorn --bind 0.0.0.0:8000 --workers 4 --timeout 360 dash_app.app:server
ENTRYPOINT gunicorn --bind 0.0.0.0:8000 --workers 1 --timeout 360 dash_app.app:server
......@@ -5,7 +5,9 @@ class AssociatedWords:
def __init__(self):
self.N_RESULTS = 7
print('loading model')
self.model = api.load('glove-twitter-200')
print('done loading model')
self.base_word = None
self.gensim_result = None
......
......@@ -2,4 +2,4 @@ from dash_app.app import app
if __name__ == '__main__':
app.run_server(debug=False)
app.run_server(debug=True)
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