Commit
·
f544400
1
Parent(s):
e83ca3c
Add instructions for running with Transformers pipeline
Browse files
README.md
CHANGED
|
@@ -143,4 +143,10 @@ This model card was written by the team at Hugging Face.
|
|
| 143 |
|
| 144 |
## How to Get Started with the Model
|
| 145 |
|
| 146 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
|
| 144 |
## How to Get Started with the Model
|
| 145 |
|
| 146 |
+
This model can be instantiated and run with a Transformers pipeline:
|
| 147 |
+
|
| 148 |
+
```python
|
| 149 |
+
from transformers import pipeline
|
| 150 |
+
pipe = pipeline("text-classification", model="roberta-base-openai-detector")
|
| 151 |
+
print(pipe("Hello world! Is this content AI-generated?")) # [{'label': 'Real', 'score': 0.8036582469940186}]
|
| 152 |
+
```
|