Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ COPY ./requirements.txt /semantic-emb-api/requirements.txt

RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu

RUN python -m pip install -r requirements.txt
RUN pip3 install -r requirements.txt

COPY . /semantic-emb-api

RUN python setup.py
RUN python semantic-emb-api/setup.py
7 changes: 7 additions & 0 deletions semantic-emb-api/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import nltk
from app.semantic_vector import semantic_embedding_model

nltk.download("punkt")
api_model = semantic_embedding_model
if api_model.model is not None:
print("Model downloaded and loaded!")
3 changes: 0 additions & 3 deletions setup.py

This file was deleted.