Spaces:
Sleeping
Sleeping
Commit
·
ddfd2b1
1
Parent(s):
c0cc4bc
Added gradient
Browse files
app.py
CHANGED
@@ -22,12 +22,14 @@ The ship was on early Wednesday ordered to return to the Kai Tak Cruise Terminal
|
|
22 |
|
23 |
|
24 |
sample_texts = [[text_1 ], [text_2]]
|
25 |
-
|
26 |
desc = """
|
27 |
-
<p style='text-align: center; color: #
|
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)
|
|
|
22 |
|
23 |
|
24 |
sample_texts = [[text_1 ], [text_2]]
|
25 |
+
#FF7F50
|
26 |
desc = """
|
27 |
+
<p style='text-align: center; color: linear-gradient(to top right,#ef4444, #fbbf24)'> 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 |
+
|
32 |
+
|
33 |
model_name = "nikhedward/bart-large-cnn-finetuned-multi-news"
|
34 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
35 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|