boyinfuture's picture
addind the news classifier and parser
c6fb015
raw
history blame
316 Bytes
from sentence_transformers import CrossEncoder
print("Starting model download to local cache...")
# This will download the model to a central Hugging Face cache on your Mac
# It might be in ~/.cache/huggingface/hub/ or similar
model = CrossEncoder('cross-encoder/nli-roberta-base')
print("Model download complete!")