Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -127,7 +127,7 @@ def _get_pos_index_and_classes(pipe, pos_label=1):
|
|
| 127 |
|
| 128 |
# ---------- model & samples ----------
|
| 129 |
local_path = hf_hub_download(repo_id=REPO, filename=FNAME, token=TOKEN)
|
| 130 |
-
model = load_model(local_path)
|
| 131 |
samples_df = load_samples()
|
| 132 |
|
| 133 |
# ---------- SHAP: background + explainer (built once) ----------
|
|
|
|
| 127 |
|
| 128 |
# ---------- model & samples ----------
|
| 129 |
local_path = hf_hub_download(repo_id=REPO, filename=FNAME, token=TOKEN)
|
| 130 |
+
model = load_model(str(Path(local_path).with_suffix("")))
|
| 131 |
samples_df = load_samples()
|
| 132 |
|
| 133 |
# ---------- SHAP: background + explainer (built once) ----------
|