mjpsm commited on
Commit
dff85f8
·
verified ·
1 Parent(s): 8c47a1c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -3
README.md CHANGED
@@ -66,12 +66,19 @@ The model expects the following features:
66
  ### 1. Install dependencies
67
 
68
  ```bash
69
- pip install xgboost scikit-learn pandas joblib
70
  import joblib
71
  import pandas as pd
 
72
 
73
- # Load the trained model
74
- model = joblib.load("xgb_test_score_model.pkl")
 
 
 
 
 
 
75
 
76
  # Example student
77
  student = pd.DataFrame([{
 
66
  ### 1. Install dependencies
67
 
68
  ```bash
69
+ pip install xgboost scikit-learn pandas joblib huggingface_hub
70
  import joblib
71
  import pandas as pd
72
+ from huggingface_hub import hf_hub_download
73
 
74
+ # Download model file from Hugging Face repo
75
+ model_path = hf_hub_download(
76
+ repo_id="mjpsm/test-score-predictor",
77
+ filename="xgb_test_score_model.pkl"
78
+ )
79
+
80
+ # Load the model
81
+ model = joblib.load(model_path)
82
 
83
  # Example student
84
  student = pd.DataFrame([{