Skip to content

Commit f3acd80

Browse files
committedSep 2, 2020
update app
1 parent 59fb581 commit f3acd80

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎app.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ def predict():
6363
# get an output prediction from the pretrained model, clf
6464
prediction = list(clf.predict(scaled_payload))
6565
# TO DO: Log the output prediction value
66+
LOG.info(f"Output prediction value: \n{prediction}")
6667
return jsonify({'prediction': prediction})
6768

6869
if __name__ == "__main__":
6970
# load pretrained model as clf
70-
clf = joblib.load("./model_data/boston_housing_prediction.joblib")
71+
clf = joblib.load("boston_housing_prediction.joblib")
7172
app.run(host='0.0.0.0', port=80, debug=True) # specify port=80
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.