Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -11,13 +11,10 @@ import tempfile
|
|
| 11 |
import os
|
| 12 |
from huggingface_hub import hf_hub_download
|
| 13 |
|
| 14 |
-
# === Load PPG-Only Trained Model ===
|
| 15 |
-
from huggingface_hub import hf_hub_download
|
| 16 |
-
|
| 17 |
model_path = hf_hub_download(
|
| 18 |
-
repo_id="Mathivani/arrhythmia-private-model",
|
| 19 |
filename="final_model.keras",
|
| 20 |
-
token=
|
| 21 |
)
|
| 22 |
|
| 23 |
model = load_model(model_path)
|
|
|
|
| 11 |
import os
|
| 12 |
from huggingface_hub import hf_hub_download
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
model_path = hf_hub_download(
|
| 15 |
+
repo_id="Mathivani/arrhythmia-private-model",
|
| 16 |
filename="final_model.keras",
|
| 17 |
+
token=os.getenv("HUGGINGFACEHUB_TOKEN") # ✅ This fetches your secret securely
|
| 18 |
)
|
| 19 |
|
| 20 |
model = load_model(model_path)
|