demo_hf_cli / README.md
arrayofintegers's picture
Create README.md
b9d9f6a verified
|
Raw History Blame Contribute Delete
509 Bytes

Demo: Upload Model CatBoost

Ini adalah demo sederhana untuk menunjukkan cara upload dan menggunakan model CatBoost di Hugging Face Hub.

📦 Cara Menggunakan Model

from catboost import CatBoostClassifier
from huggingface_hub import hf_hub_download
model_path = hf_hub_download(
    repo_id="arrayofintegers/demo_hf",
    filename="catboost_model.cbm",
    repo_type="model"
)

# Load model lokal setelah download dari Hugging Face
model = CatBoostClassifier()
model.load_model(model_path)