Spaces:
Runtime error
Runtime error
Modified app.py
Browse files
app.py
CHANGED
@@ -20,20 +20,17 @@ def extract_article_text(url):
|
|
20 |
extractor = gr.Interface(extract_article_text, 'text', 'text')
|
21 |
summarizer = gr.Interface.load("huggingface/facebook/bart-large-cnn")
|
22 |
|
23 |
-
sample_url = [['https://www.
|
24 |
-
|
25 |
-
['https://www.technologyreview.com/2021/07/09/1028140/ai-voice-actors-sound-human/']]
|
26 |
|
27 |
desc = '''
|
28 |
-
|
29 |
-
Note: Shorter articles generate faster summaries.
|
30 |
-
This summarizer uses bart-large-cnn model by Facebook
|
31 |
'''
|
32 |
|
33 |
iface = Series(extractor, summarizer,
|
34 |
inputs = gr.inputs.Textbox(
|
35 |
lines = 2,
|
36 |
-
label = 'URL'
|
37 |
),
|
38 |
outputs = 'text',
|
39 |
title = 'News Summarizer',
|
|
|
20 |
extractor = gr.Interface(extract_article_text, 'text', 'text')
|
21 |
summarizer = gr.Interface.load("huggingface/facebook/bart-large-cnn")
|
22 |
|
23 |
+
sample_url = [['https://www.cp24.com/news/ontario-reports-481-new-covid-19-cases-1-death-1.5667950'],
|
24 |
+
]
|
|
|
25 |
|
26 |
desc = '''
|
27 |
+
the news summarizer uses bart-large-cnn model by Facebook to summarize the text of the article.
|
|
|
|
|
28 |
'''
|
29 |
|
30 |
iface = Series(extractor, summarizer,
|
31 |
inputs = gr.inputs.Textbox(
|
32 |
lines = 2,
|
33 |
+
label = 'Enter URL below'
|
34 |
),
|
35 |
outputs = 'text',
|
36 |
title = 'News Summarizer',
|