tam3222 commited on
Commit
09ccf30
·
verified ·
1 Parent(s): 97adf69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -5,12 +5,21 @@ import joblib
5
  import os
6
 
7
  from huggingface_hub import HfApi, login
8
- login(os.getenv("HF_TOKEN"))
9
 
10
  # Download the model from the Model Hub
 
 
 
 
 
 
 
11
  model_path = hf_hub_download(
12
- repo_id="tam3222/tourism",
13
- filename="best_engine_prediction_model_v1.joblib"
 
 
14
  )
15
 
16
  # Load the model
 
5
  import os
6
 
7
  from huggingface_hub import HfApi, login
8
+ #login(os.getenv("HF_TOKEN"))
9
 
10
  # Download the model from the Model Hub
11
+ #model_path = hf_hub_download(
12
+ #repo_id="tam3222/tourism",
13
+ #filename="best_engine_prediction_model_v1.joblib"
14
+ #)
15
+
16
+ HF_TOKEN = os.getenv("HF_TOKEN") # Optional if repo is public
17
+
18
  model_path = hf_hub_download(
19
+ repo_id="tam3222/Engine_Model",
20
+ filename="best_engine_prediction_model_v1.joblib", # <- adjust if different
21
+ repo_type="model",
22
+ token=HF_TOKEN # can be None for public repos
23
  )
24
 
25
  # Load the model