Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FoodInformatics
msx-tool
Commits
48f4951f
Commit
48f4951f
authored
Mar 05, 2021
by
Jim Hoekstra
👋🏻
Browse files
1 worker instead of 4 solves timeout problem, I hope
parent
18aa936a
Pipeline
#19244
canceled with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
48f4951f
...
...
@@ -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
dash_app/words.py
View file @
48f4951f
...
...
@@ -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
...
...
scripts/run_debug_server.py
View file @
48f4951f
...
...
@@ -2,4 +2,4 @@ from dash_app.app import app
if
__name__
==
'__main__'
:
app
.
run_server
(
debug
=
Fals
e
)
app
.
run_server
(
debug
=
Tru
e
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment