sjrhuschlee
commited on
Commit
•
3a969f0
1
Parent(s):
7c45a8e
Update README.md
Browse files
README.md
CHANGED
@@ -35,7 +35,11 @@ Use the code below to get started with the model. The model can be loaded with t
|
|
35 |
|
36 |
```python
|
37 |
from transformers import pipeline
|
38 |
-
classifier = pipeline(
|
|
|
|
|
|
|
|
|
39 |
```
|
40 |
|
41 |
You can then use this pipeline to classify sequences into any of the class names you specify. For example:
|
|
|
35 |
|
36 |
```python
|
37 |
from transformers import pipeline
|
38 |
+
classifier = pipeline(
|
39 |
+
'zero-shot-classification',
|
40 |
+
model='sjrhuschlee/flan-t5-base-mnli',
|
41 |
+
trust_remote_code=True,
|
42 |
+
)
|
43 |
```
|
44 |
|
45 |
You can then use this pipeline to classify sequences into any of the class names you specify. For example:
|