Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from deepmipt/dev
Release v0.1.4
- Loading branch information
Showing
66 changed files
with
2,663 additions
and
3,854 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
FROM tensorflow/tensorflow:1.15.2-gpu | ||
FROM deeppavlov/base-gpu:0.12.1 | ||
|
||
RUN apt-get update && apt-get install git -y | ||
|
||
ARG SEQ_TAG_CONFIG | ||
ARG EL_TAG_CONFIG | ||
ARG CONFIG | ||
ARG COMMIT=0.13.0 | ||
ARG FINEGRAINED | ||
ARG LOWERCASE | ||
ARG PORT | ||
ARG SRC_DIR | ||
ARG SED_ARG=" | " | ||
|
||
ENV SEQ_TAG_CONFIG=$SEQ_TAG_CONFIG | ||
ENV EL_TAG_CONFIG=$EL_TAG_CONFIG | ||
ENV CONFIG=$CONFIG | ||
ENV FINEGRAINED=$FINEGRAINED | ||
ENV LOWERCASE=$LOWERCASE | ||
ENV PORT=$PORT | ||
|
||
COPY ./annotators/entity_detection/requirements.txt /src/requirements.txt | ||
RUN pip install -r /src/requirements.txt | ||
|
||
RUN pip install git+https://github.com/deepmipt/DeepPavlov.git@${COMMIT} | ||
RUN python -m spacy download en_core_web_sm | ||
|
||
COPY $SRC_DIR /src | ||
|
||
WORKDIR /src | ||
RUN python -m deeppavlov install $CONFIG | ||
RUN python -m deeppavlov install $SEQ_TAG_CONFIG | ||
RUN python -m deeppavlov install $EL_TAG_CONFIG | ||
|
||
RUN sed -i "s|$SED_ARG|g" "$CONFIG" | ||
RUN sed -i "s|$SED_ARG|g" "$SEQ_TAG_CONFIG" | ||
RUN sed -i "s|$SED_ARG|g" "$EL_TAG_CONFIG" | ||
|
||
CMD gunicorn --workers=1 --timeout 500 server:app -b 0.0.0.0:8103 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.