Spaces:
Runtime error
Runtime error
Commit
·
2c64097
1
Parent(s):
527523b
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,18 +25,20 @@ project = hopsworks.login(api_key_value="4CY1rwa8iz8Yu6gG.TwayrYmsX4GQfhSp3LNKYT
|
|
| 25 |
fs = project.get_feature_store()
|
| 26 |
|
| 27 |
mr = project.get_model_registry()
|
| 28 |
-
model = mr.get_model("stock_modal"
|
| 29 |
model_dir = model.download()
|
| 30 |
-
|
| 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 |
|
| 42 |
|
|
|
|
| 25 |
fs = project.get_feature_store()
|
| 26 |
|
| 27 |
mr = project.get_model_registry()
|
| 28 |
+
model = mr.get_model("stock_modal")
|
| 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 |
+
|
| 37 |
+
'''
|
| 38 |
m=model_dir + "stock_model.pkl"
|
| 39 |
with open(m, "rb") as f:
|
| 40 |
model = pickle.load(f)
|
| 41 |
+
'''
|
| 42 |
|
| 43 |
|
| 44 |
|