add Quickstart
Browse files
README.md
CHANGED
@@ -9,3 +9,15 @@ pipeline_tag: summarization
|
|
9 |
<!-- Provide a quick summary of what the model is/does. -->
|
10 |
|
11 |
Persian Long Text Summarization
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
<!-- Provide a quick summary of what the model is/does. -->
|
10 |
|
11 |
Persian Long Text Summarization
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
+
## ⚡️ Quickstart
|
16 |
+
```
|
17 |
+
from transformers import AutoTokenizer
|
18 |
+
from transformers import pipeline
|
19 |
+
|
20 |
+
summarizer = pipeline("summarization", model="zedfum/arman-longformer-8k-finetuned-ensani", tokenizer="zedfum/arman-longformer-8k-finetuned-ensani" , device=0)
|
21 |
+
text_to_summarize=""
|
22 |
+
summarizer(text_to_summarize, min_length=5, max_length=512, truncation=True)
|
23 |
+
```
|