Victorlopo21 commited on
Commit
527523b
·
1 Parent(s): 8d01398

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -27,12 +27,15 @@ fs = project.get_feature_store()
27
  mr = project.get_model_registry()
28
  model = mr.get_model("stock_modal", version=1)
29
  model_dir = model.download()
30
- model = joblib.load(model_dir + "/stock_model.pkl")
 
31
 
32
  #from huggingface_hub import hf_hub_download
33
  #m = hf_hub_download(repo_id="marvmk/model-test", filename="model.pkl")
34
  #model = pickle.load(open(m, 'rb'))
35
-
 
 
36
 
37
 
38
 
 
27
  mr = project.get_model_registry()
28
  model = mr.get_model("stock_modal", version=1)
29
  model_dir = model.download()
30
+ #model = joblib.load(model_dir + "/stock_model.pkl")
31
+
32
 
33
  #from huggingface_hub import hf_hub_download
34
  #m = hf_hub_download(repo_id="marvmk/model-test", filename="model.pkl")
35
  #model = pickle.load(open(m, 'rb'))
36
+ m=model_dir + "stock_model.pkl"
37
+ with open(m, "rb") as f:
38
+ model = pickle.load(f)
39
 
40
 
41