Commit
•
9e07598
1
Parent(s):
eb3febd
Update README.md
Browse files
README.md
CHANGED
@@ -37,9 +37,14 @@ Once you have [installed transformers](https://huggingface.co/docs/transformers/
|
|
37 |
|
38 |
|
39 |
```
|
40 |
-
|
41 |
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
44 |
[{'label': 'no_jim_crow', 'score': 0.9718555212020874}]
|
45 |
```
|
|
|
37 |
|
38 |
|
39 |
```
|
40 |
+
from transformers import pipeline
|
41 |
|
42 |
+
classifier = pipeline('text-classification', "davanstrien/autotrain-beyond-the-books")
|
43 |
+
classifier(text)
|
44 |
+
```
|
45 |
+
|
46 |
+
This will return predictions in the following format
|
47 |
+
|
48 |
+
```
|
49 |
[{'label': 'no_jim_crow', 'score': 0.9718555212020874}]
|
50 |
```
|