Skip to content

Commit

Permalink
Checkout specific commit from deep-histopath (IBM#18)
Browse files Browse the repository at this point in the history
* checkout specific commit from deep-histopath

* add flake8 tests

* cleanup code

* increase travis sleep from 10 to 30 seconds
  • Loading branch information
bdwyer2 authored Mar 11, 2019
1 parent eac1c50 commit 4631834
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ services:
install:
- docker build -t max-breast-cancer-mitosis-detector .
- docker run -it -d -p 5000:5000 max-breast-cancer-mitosis-detector
- pip install pytest requests flake8
before_script:
- pip install pytest requests
- sleep 10
- flake8 . --max-line-length=127
- sleep 30
script:
- pytest tests/test.py
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ RUN pip install -r requirements.txt

RUN cd /workspace && \
git clone https://github.com/codait/deep-histopath && \
cd deep-histopath && \
git checkout e0c93c3543830a0ee07ad9408e844465f045781c && \
cd ../ && \
cp -R deep-histopath/. .

COPY . /workspace
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Application settings

# Flask settings
# Flask settings
DEBUG = False

# Flask-restplus settings
Expand Down
1 change: 1 addition & 0 deletions core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

logger = logging.getLogger()


class ModelWrapper(MAXModelWrapper):

MODEL_META_DATA = {
Expand Down
3 changes: 2 additions & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def test_metadata():
metadata = r.json()
assert metadata['id'] == 'max breast cancer mitosis detector-keras-model'
assert metadata['name'] == 'MAX Breast Cancer Mitosis Detector Keras Model'
assert metadata['description'] == 'MAX Breast Cancer Mitosis Detector Keras model trained on TUPAC16 data to detect mitosis'
assert metadata['description'] == 'MAX Breast Cancer Mitosis Detector Keras model trained on TUPAC16 data to ' \
'detect mitosis'
assert metadata['license'] == 'Custom'


Expand Down

0 comments on commit 4631834

Please sign in to comment.