Update README.md
Browse files
README.md
CHANGED
|
@@ -4,10 +4,6 @@ tags:
|
|
| 4 |
language: zh
|
| 5 |
---
|
| 6 |
|
| 7 |
-
## Note
|
| 8 |
-
|
| 9 |
-
**This repo is under development.**
|
| 10 |
-
|
| 11 |
## Usage
|
| 12 |
|
| 13 |
```
|
|
@@ -26,10 +22,3 @@ output_texts = tokenizer.batch_decode(outputs)
|
|
| 26 |
|
| 27 |
print(output_texts)
|
| 28 |
```
|
| 29 |
-
## pipeline
|
| 30 |
-
```python
|
| 31 |
-
texts = ["今天天气不错,","新年快乐,万事如意,"]
|
| 32 |
-
generator = pipeline("text-generation", model="openbmb/cpm-ant-10b", tokenizer="openbmb/cpm-ant-10b")
|
| 33 |
-
result = generator(texts)
|
| 34 |
-
print(result)
|
| 35 |
-
```
|
|
|
|
| 4 |
language: zh
|
| 5 |
---
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
## Usage
|
| 8 |
|
| 9 |
```
|
|
|
|
| 22 |
|
| 23 |
print(output_texts)
|
| 24 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|