Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
Dockerfile yaml added
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyza Yildirim authored and Beyza Yildirim committed Jan 23, 2022
1 parent c324cb9 commit eee4d8d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:3.8

WORKDIR /better.me

COPY requirements.txt ./requirements.txt

RUN pip3 install -r requirements.txt

EXPOSE 8080

COPY . /better.me

CMD streamlit run --server.port 8080 --server.enableCORS false app.py

4 changes: 4 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
runtime: custom
env: flex
manual_scaling:
instances: 1
2 changes: 1 addition & 1 deletion model_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def configure_optimizers(self):

def load_model(path):
# return model
pass
return pt.load("./model.pt")


def pred(text: str, model):
Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
-f https://download.pytorch.org/whl/torch_stable.html
torch==1.8.1+cpu
pytorch_lightning
streamlit~=1.4.0
watchdog
requests~=2.27.1
pandas~=1.3.5
numpy~=1.21.5
altair~=4.2.0
plotly
transformers[torch]

0 comments on commit eee4d8d

Please sign in to comment.