Spaces:
Sleeping
Sleeping
davidmezzetti
commited on
Commit
·
65a4103
1
Parent(s):
46f4103
Update app.py
Browse files
app.py
CHANGED
@@ -22,9 +22,9 @@ class Application:
|
|
22 |
Creates a new application.
|
23 |
"""
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
self.workflow = Workflow([UrlTask(
|
28 |
|
29 |
def run(self):
|
30 |
"""
|
|
|
22 |
Creates a new application.
|
23 |
"""
|
24 |
|
25 |
+
textract = Textractor(paragraphs=True, minlength=100, join=True)
|
26 |
+
summary = Summary("sshleifer/distilbart-cnn-12-6")
|
27 |
+
self.workflow = Workflow([UrlTask(textract), Task(summary)])
|
28 |
|
29 |
def run(self):
|
30 |
"""
|