-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: shiyu22 <[email protected]>
- Loading branch information
Showing
14 changed files
with
121 additions
and
259 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,16 +1,11 @@ | ||
From ubuntu:latest | ||
FROM python:3.7-slim-buster | ||
|
||
RUN pip3 install --upgrade pip | ||
|
||
WORKDIR /app/src | ||
COPY . /app | ||
|
||
RUN apt-get update && apt-get install python3-pip python3 -y && apt-get install wget -y && apt-get install zip -y | ||
|
||
RUN mkdir -p /app/src/models | ||
|
||
RUN wget https://public.ukp.informatik.tu-darmstadt.de/reimers/sentence-transformers/v0.2/paraphrase-mpnet-base-v2.zip | ||
|
||
RUN unzip paraphrase-mpnet-base-v2.zip -d /app/src/models/paraphrase-mpnet-base-v2/ | ||
|
||
RUN pip3 install -r /app/requirements.txt -i https://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com | ||
RUN pip3 install -r /app/requirements.txt | ||
RUN python3 encode.py | ||
|
||
CMD python3 main.py |
8 changes: 4 additions & 4 deletions
8
solutions/nlp/question_answering_system/server/requirements.txt
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,9 +1,9 @@ | ||
PyMySQL | ||
PyMySQL==1.0.2 | ||
uvicorn | ||
numpy | ||
pymilvus==2.0.1 | ||
pymilvus==2.2.11 | ||
towhee==1.1.0 | ||
towhee.models==1.1.0 | ||
fastapi | ||
python-multipart | ||
pandas | ||
sentence_transformers==1.2.0 | ||
gdown |
Oops, something went wrong.