Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: afl-3.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: afl-3.0
|
| 3 |
+
---
|
| 4 |
+
# Use a pipeline as a high-level helper
|
| 5 |
+
from transformers import pipeline
|
| 6 |
+
|
| 7 |
+
pipe = pipeline("text-generation", model="baidu/ERNIE-4.5-21B-A3B-Thinking")
|
| 8 |
+
messages = [
|
| 9 |
+
{"role": "user", "content": "Who are you?"},
|
| 10 |
+
]
|
| 11 |
+
pipe(messages)
|