Skip to content

Commit

Permalink
Branch with API files ready to go
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaGKononova committed May 13, 2021
1 parent 0efad16 commit e1bcc05
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 234 deletions.
23 changes: 19 additions & 4 deletions Dockerfile
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.
4 changes: 0 additions & 4 deletions examples/examples.txt

This file was deleted.

17 changes: 0 additions & 17 deletions examples/predict_json.py

This file was deleted.

23 changes: 0 additions & 23 deletions synpro_scripts/classify_experimental.py

This file was deleted.

62 changes: 0 additions & 62 deletions synpro_scripts/compute_embeddings.py

This file was deleted.

35 changes: 0 additions & 35 deletions synpro_scripts/convert_synpro.js

This file was deleted.

47 changes: 0 additions & 47 deletions synpro_scripts/patents_batteries.py

This file was deleted.

21 changes: 0 additions & 21 deletions synpro_scripts/patents_examples.py

This file was deleted.

21 changes: 0 additions & 21 deletions synpro_scripts/reclassify.py

This file was deleted.

0 comments on commit e1bcc05

Please sign in to comment.