Update README.md
Browse files
README.md
CHANGED
@@ -40,7 +40,12 @@ text = "[insert text here]"
|
|
40 |
inputs = tokenizer(text,return_tensors='pt')
|
41 |
output = model(**inputs)
|
42 |
```
|
|
|
|
|
|
|
43 |
|
|
|
|
|
|
|
44 |
**IMPORTANT** :
|
45 |
* Make sure to enable `trust_remote_code=True`
|
46 |
-
* Avoid using the pipeline method
|
|
|
40 |
inputs = tokenizer(text,return_tensors='pt')
|
41 |
output = model(**inputs)
|
42 |
```
|
43 |
+
or you can use the pipeline :
|
44 |
+
```python
|
45 |
+
from transformers import pipeline
|
46 |
|
47 |
+
pipe = pipeline(model="not-lain/TunBERT",tokenizer = "not-lain/TunBERT",trust_remote_code=True)
|
48 |
+
pipe("text")
|
49 |
+
```
|
50 |
**IMPORTANT** :
|
51 |
* Make sure to enable `trust_remote_code=True`
|
|