Upload 2 files 51ae49c
Christoph commited on
How to use rahon/gpc-brick-code-classifier-based-on-ld-json with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="rahon/gpc-brick-code-classifier-based-on-ld-json") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("rahon/gpc-brick-code-classifier-based-on-ld-json")
model = AutoModelForSequenceClassification.from_pretrained("rahon/gpc-brick-code-classifier-based-on-ld-json", device_map="auto")