hofarah commited on
Commit
a9b7aa9
1 Parent(s): 7d4ac32

add Quickstart

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