File size: 292 Bytes
e316253
 
 
 
 
 
94a2ff4
d7f9f8d
 
 
8c68d50
 
d7f9f8d
94a2ff4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from huggingface_hub import hf_hub_download
import joblib

REPO_ID = "kompiangg/svm-hate-speech-classification"

def load_hugging_face_model(filename):
  return joblib.load(
    hf_hub_download(
      REPO_ID, 
      filename, 
      cache_dir="./.cache",
      local_dir="./.cache"
    )
  )