Views
No views yet
1from transformers import pipeline
2
3# Load model
4classifier = pipeline(
5 "sentiment-analysis",
6 model="./fine_tuned_distilbert_sentiment"
7)
8
9# Predict
10result = classifier("I love this product!")
11print(result)pytorch_model.bin: Model weightsconfig.json: Model configurationtokenizer.json: Tokenizer configurationspecial_tokens_map.json: Special tokens mappingvocab.txt: Vocabulary filelabel_mappings.json: Label ID mappings