Spaces:
Sleeping
Sleeping
Commit
·
c83e304
1
Parent(s):
db63995
new model
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ This is an abstractive text summarizer app using fine-tuned bart-large-cnn model
|
|
30 |
|
31 |
|
32 |
|
33 |
-
model_name = "nikhedward/bart-large-cnn-finetuned-multi-
|
34 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
35 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
36 |
|
@@ -42,7 +42,7 @@ def summarize(inp):
|
|
42 |
return summary
|
43 |
|
44 |
interface = gr.Interface(fn=summarize, inputs=gr.inputs.Textbox(lines=10, label="Input Text"), description = desc, theme = "peach",
|
45 |
-
examples = sample_texts, title = title, outputs="text")
|
46 |
|
47 |
interface.launch()
|
48 |
|
|
|
30 |
|
31 |
|
32 |
|
33 |
+
model_name = "nikhedward/bart-large-cnn-finetuned-multi-news1"
|
34 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
35 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
36 |
|
|
|
42 |
return summary
|
43 |
|
44 |
interface = gr.Interface(fn=summarize, inputs=gr.inputs.Textbox(lines=10, label="Input Text"), description = desc, theme = "peach",
|
45 |
+
examples = sample_texts, title = title, outputs="text", css=".footer{display:none !important}")
|
46 |
|
47 |
interface.launch()
|
48 |
|