Mohammad Haizad
commited on
Commit
·
8fadbe3
1
Parent(s):
66b5b2f
remove hardcoded model
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def stacked_model(model1,model2,model3):
|
|
51 |
X, y = load_ames_housing()
|
52 |
estimators = []
|
53 |
for model in [model1,model2,model3]:
|
54 |
-
download(repo_id=
|
55 |
pipeline = joblib.load( "temp_dir/model.pkl")
|
56 |
estimators.append((model.split('/')[-1], pipeline))
|
57 |
shutil.rmtree("temp_dir")
|
|
|
51 |
X, y = load_ames_housing()
|
52 |
estimators = []
|
53 |
for model in [model1,model2,model3]:
|
54 |
+
download(repo_id=model, dst='temp_dir')
|
55 |
pipeline = joblib.load( "temp_dir/model.pkl")
|
56 |
estimators.append((model.split('/')[-1], pipeline))
|
57 |
shutil.rmtree("temp_dir")
|