updated main.py

This commit is contained in:
Nick Walton committed 2019-11-18 13:28:24 -07:00
1 parent 1f6e501a91
commit 2a98952b23
4 files changed
+64 -26

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
FROM nvcr.io/nvidia/tensorflow:19.08-py3
ENV APP_HOME /app
WORKDIR $APP_HOME
COPY . ./
RUN pip install -r requirements.txt
WORKDIR generator/ctrl
RUN ls
RUN sh install_ctrl_py3.sh
RUN sh download_model.sh
WORKDIR $APP_HOME
CMD exec guincorn --bind :%PORT --workers 1 --threads 8 app:app