Working fix pre merge

This commit is contained in:
marko.ferme
2023-01-10 11:20:14 +01:00
parent 1cd7663d49
commit 69a92a3420
32 changed files with 1457 additions and 316 deletions
+3 -2
View File
@@ -58,14 +58,15 @@ RUN pip install --no-cache /wheels/*
# copy entrypoint-prod.sh
COPY ./entrypoint.prod.sh $APP_HOME
# copy project
COPY . $APP_HOME
RUN chmod u+x $APP_HOME/entrypoint.prod.sh
# chown all the files to the app user
RUN chown -R app:app $APP_HOME
# a workaround for permission errors for the classla_volume
RUN mkdir $HOME/classla_resources && chown app:app $HOME/classla_resources
# RUN mkdir $HOME/classla_resources && chown app:app $HOME/classla_resources
# change to the app user
USER app
+1 -1
View File
@@ -7,7 +7,7 @@ import classla
from lemmagen3 import Lemmatizer
classla.download("sl", logging_level="WARNING")
#classla.download("sl", logging_level="WARNING")
classla_nlp_pipeline = classla.Pipeline(
lang="sl",
processors="tokenize,pos,lemma,depparse",
+1 -1
View File
@@ -4,6 +4,6 @@
sed -i 's/signal(/pass;#signal(/g' /usr/local/lib/python3.8/site-packages/classla/submodules/reldi_tokeniser/tokeniser.py
# pre-download models
python -c "import classla;classla.download('sl', logging_level='INFO')"
#python -c "import classla;classla.download('sl', logging_level='INFO')"
exec "$@"
+1 -1
View File
@@ -5,6 +5,6 @@ echo "Patching tokeniser.py..."
sed -i 's/signal(/pass;#signal(/g' /usr/local/lib/python3.8/site-packages/classla/submodules/reldi_tokeniser/tokeniser.py
# pre-download models
python -c "import classla;classla.download('sl', logging_level='INFO')"
# python -c "import classla;classla.download('sl', logging_level='INFO')"
exec "$@"
+1 -1
View File
@@ -1,7 +1,7 @@
Flask==2.1.*
flask-restx
gunicorn==20.1.0
classla==1.0.1
classla==1.1.0
lemmagen3==3.3.1
flask-socketio==5.1.0
simple-websocket==0.2.0