Update README.md
Browse files
README.md
CHANGED
@@ -85,7 +85,10 @@ pip install transformers sentencepiece
|
|
85 |
```py
|
86 |
from transformers import pipeline
|
87 |
|
88 |
-
|
|
|
|
|
|
|
89 |
text = "Tesla cars are not as good as expected"
|
90 |
result = classifier(text)
|
91 |
print(result)
|
|
|
85 |
```py
|
86 |
from transformers import pipeline
|
87 |
|
88 |
+
task = "text-classification"
|
89 |
+
model_id = "mrm8488/deberta-v3-ft-financial-news-sentiment-analysis"
|
90 |
+
|
91 |
+
classifier = pipeline(tasl,model_id)
|
92 |
text = "Tesla cars are not as good as expected"
|
93 |
result = classifier(text)
|
94 |
print(result)
|