Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanush123 committed Mar 3, 2020
1 parent 3d8226d commit ad79bb5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,5 @@ dmypy.json

# Pyre type checker
.pyre/

gcs_creds.json
11 changes: 11 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]

[requires]
python_version = "3.8"
3 changes: 1 addition & 2 deletions test1.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def load_resources():
'''Flask template is currently only for scikit-learn models'''
load_dotenv()
if not model:
model_path = gcs_download_file(os.environ.get("MODEL_PATH"))
model = load(model_path)
model = load(os.environ["MODEL_PATH"])


def transform_data(input_data):
Expand Down

0 comments on commit ad79bb5

Please sign in to comment.