Tristan21b commited on
Commit
75db43d
·
verified ·
1 Parent(s): 6fd5607

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -3
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)