From e5519c2bf5c53056a14f193547b865e0772aed94 Mon Sep 17 00:00:00 2001 From: Ayyuce Demirbas Date: Sat, 20 Nov 2021 18:13:24 +0300 Subject: [PATCH] ufo-model.pkl file should be in the same directory as app.py ufo-model.pkl model file should be in the same directory as app.py --- 3-Web-App/1-Web-App/translations/README.zh-cn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3-Web-App/1-Web-App/translations/README.zh-cn.md b/3-Web-App/1-Web-App/translations/README.zh-cn.md index af45d1ce..c6409808 100644 --- a/3-Web-App/1-Web-App/translations/README.zh-cn.md +++ b/3-Web-App/1-Web-App/translations/README.zh-cn.md @@ -281,7 +281,7 @@ print(model.predict([[50,44,-12]])) app = Flask(__name__) - model = pickle.load(open("../ufo-model.pkl", "rb")) + model = pickle.load(open("./ufo-model.pkl", "rb")) @app.route("/")