omykhailiv commited on
Commit
6030b15
·
verified ·
1 Parent(s): 01a9c48

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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.