-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0efad16
commit e1bcc05
Showing
10 changed files
with
19 additions
and
234 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7 | ||
FROM python:3.6.12 | ||
|
||
COPY . /app | ||
COPY ./examples/predict_fastapi.py /app/main.py | ||
RUN pip install -e /app | ||
WORKDIR /classification | ||
|
||
# Install transformers | ||
RUN pip3 install transformers | ||
# Install fastAPI | ||
RUN pip3 install -U fastapi[all] | ||
# Install torch | ||
RUN pip3 install torch | ||
# Install mongo client | ||
RUN pip3 install pymongo | ||
# Install numpy/scipy | ||
RUN pip3 install scipy | ||
RUN pip3 install numpy | ||
|
||
COPY . /classification | ||
RUN pip3 install -e . | ||
RUN python -m synthesis_classifier.model download | ||
|
||
#uvicorn classification_api:app --port 8051 --reload --host 0.0.0.0 |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.