arrayofintegers commited on
Commit
b9d9f6a
·
verified ·
1 Parent(s): 96fa6d8

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -0
README.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Demo: Upload Model CatBoost
2
+
3
+ Ini adalah demo sederhana untuk menunjukkan cara upload dan menggunakan model CatBoost di Hugging Face Hub.
4
+
5
+ ## 📦 Cara Menggunakan Model
6
+
7
+ ```python
8
+ from catboost import CatBoostClassifier
9
+ from huggingface_hub import hf_hub_download
10
+ model_path = hf_hub_download(
11
+ repo_id="arrayofintegers/demo_hf",
12
+ filename="catboost_model.cbm",
13
+ repo_type="model"
14
+ )
15
+
16
+ # Load model lokal setelah download dari Hugging Face
17
+ model = CatBoostClassifier()
18
+ model.load_model(model_path)