Update README.md
Browse files
README.md
CHANGED
@@ -49,11 +49,11 @@ One can translate news from the language into English, though it may not give th
|
|
49 |
## How to Get Started with the Model
|
50 |
|
51 |
Use the code below to get started with the model.
|
52 |
-
|
53 |
from transformers import pipeline
|
54 |
pipe = pipeline("text-classification", model="omykhailiv/bert-fake-news-recognition")
|
55 |
pipe.predict('Some text')
|
56 |
-
|
57 |
It will return something like this:
|
58 |
[{'label': 'LABEL_0', 'score': 0.7248537290096283}]
|
59 |
Where 'LABEL_0' means false and 'score' stands for the probability of it.
|
|
|
49 |
## How to Get Started with the Model
|
50 |
|
51 |
Use the code below to get started with the model.
|
52 |
+
```
|
53 |
from transformers import pipeline
|
54 |
pipe = pipeline("text-classification", model="omykhailiv/bert-fake-news-recognition")
|
55 |
pipe.predict('Some text')
|
56 |
+
```
|
57 |
It will return something like this:
|
58 |
[{'label': 'LABEL_0', 'score': 0.7248537290096283}]
|
59 |
Where 'LABEL_0' means false and 'score' stands for the probability of it.
|