Mathivani commited on
Commit
82f2094
·
verified ·
1 Parent(s): c50c7f1

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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", # ✅ CORRECT
19
  filename="final_model.keras",
20
- token=True # 👈 include this if private
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)