Skip to content

Commit a31bb9d

Browse files
Gil HenryGil Henry
Gil Henry
authored and
Gil Henry
committed
#49: remove .git from docker api AND remove git_commit from api return response
1 parent 2b7bba9 commit a31bb9d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: .dockerignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ pip-delete-this-directory.txt
1515
.cache
1616
coverage.xml
1717
*.cover
18-
*.log
18+
*.log
19+
.git

Diff for: src/model/predict.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import numpy as np
1414

1515
from mlmonkey.metadata import PredictionMetadata
16-
from mlmonkey.metadata.utils import get_git_commit
1716

1817
from .. import settings as s
1918

@@ -112,8 +111,7 @@ def predict_api(body, model_name):
112111
'release': {
113112
'model_name': model_name,
114113
'model_location': model_location,
115-
'model_metadata_location': model_metadata_location,
116-
'git_commit': get_git_commit()
114+
'model_metadata_location': model_metadata_location
117115
},
118116
'result': preds.tolist(),
119117
'timing': time.time() - start_time

0 commit comments

Comments
 (0)