sravan837 commited on
Commit
6da837b
·
verified ·
1 Parent(s): 0d3bdd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -14,10 +14,14 @@ HF_REPO_ID = "sravan837/slope-stability-api"
14
 
15
 
16
  # Download the preprocessor and model from Hugging Face
 
 
17
  onnx_model_path = hf_hub_download(
18
  repo_id="sravan837/slope-stability-api",
19
  filename="slope_stability_model.onnx",
 
20
  )
 
21
  # Load preprocessor
22
  preprocessor = joblib.load(preprocessor_path)
23
 
 
14
 
15
 
16
  # Download the preprocessor and model from Hugging Face
17
+ from huggingface_hub import hf_hub_download
18
+
19
  onnx_model_path = hf_hub_download(
20
  repo_id="sravan837/slope-stability-api",
21
  filename="slope_stability_model.onnx",
22
+ use_auth_token=True # Ensure you are authenticated
23
  )
24
+
25
  # Load preprocessor
26
  preprocessor = joblib.load(preprocessor_path)
27