Moritz-Pfeifer commited on
Commit
ecfdbbd
·
1 Parent(s): 899892d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -31,8 +31,8 @@ You can use these models in your own applications by leveraging the Hugging Face
31
  from transformers import pipeline
32
 
33
  # Load the AudienceClassifier model
34
- audience_classifier = pipeline("sentiment-classification", model="Moritz-Pfeifer/CentralBankRoBERTa-sentiment-classifier")
35
 
36
  # Perform audience classification
37
  sentinemnt_result = audience_classifier("The early effects of our policy tightening are also becoming visible, especially in sectors like manufacturing and construction that are more sensitive to interest rate changes.")
38
- print("Sentiment Classification:", sentinemnt_result[0]['label'])
 
31
  from transformers import pipeline
32
 
33
  # Load the AudienceClassifier model
34
+ audience_classifier = pipeline("text-classification", model="Moritz-Pfeifer/CentralBankRoBERTa-sentiment-classifier")
35
 
36
  # Perform audience classification
37
  sentinemnt_result = audience_classifier("The early effects of our policy tightening are also becoming visible, especially in sectors like manufacturing and construction that are more sensitive to interest rate changes.")
38
+ print("Sentiment:", sentinemnt_result[0]['label'])