Update README.md
Browse files
README.md
CHANGED
|
@@ -33,6 +33,7 @@ base_model:
|
|
| 33 |
```python
|
| 34 |
from transformers import pipeline
|
| 35 |
|
|
|
|
| 36 |
summarizer = pipeline("summarization", model="kritsadaK/bart-financial-summarization")
|
| 37 |
text = "Your financial document text here..."
|
| 38 |
summary = summarizer(text, max_length=256, min_length=50, do_sample=False)
|
|
|
|
| 33 |
```python
|
| 34 |
from transformers import pipeline
|
| 35 |
|
| 36 |
+
max_input_length = 1024
|
| 37 |
summarizer = pipeline("summarization", model="kritsadaK/bart-financial-summarization")
|
| 38 |
text = "Your financial document text here..."
|
| 39 |
summary = summarizer(text, max_length=256, min_length=50, do_sample=False)
|