Spaces:
Sleeping
Sleeping
Commit
·
53ed7aa
1
Parent(s):
b57d1eb
Updated css styling
Browse files
app.py
CHANGED
|
@@ -23,13 +23,12 @@ The ship was on early Wednesday ordered to return to the Kai Tak Cruise Terminal
|
|
| 23 |
|
| 24 |
sample_texts = [[text_1 ], [text_2]]
|
| 25 |
|
| 26 |
-
desc =
|
| 27 |
-
"""
|
| 28 |
<p style='text-align: center; color:white'> This is an abstractive text summarizer app using fine-tuned bart-large-cnn model. The abstractive approach involves rephrasing the complete document while capturing the complete meaning of the document. This type of summarization provides more human-like summary. Note: For faster summaries input smaller texts. Sample Text input is provided for you at the bottom! </p>
|
| 29 |
"""
|
| 30 |
|
| 31 |
|
| 32 |
-
model_name = "nikhedward/bart-large-cnn-finetuned-multi-
|
| 33 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 34 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
| 35 |
|
|
|
|
| 23 |
|
| 24 |
sample_texts = [[text_1 ], [text_2]]
|
| 25 |
|
| 26 |
+
desc = """
|
|
|
|
| 27 |
<p style='text-align: center; color:white'> This is an abstractive text summarizer app using fine-tuned bart-large-cnn model. The abstractive approach involves rephrasing the complete document while capturing the complete meaning of the document. This type of summarization provides more human-like summary. Note: For faster summaries input smaller texts. Sample Text input is provided for you at the bottom! </p>
|
| 28 |
"""
|
| 29 |
|
| 30 |
|
| 31 |
+
model_name = "nikhedward/bart-large-cnn-finetuned-multi-news"
|
| 32 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 33 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
| 34 |
|