Spaces:
Runtime error
Runtime error
tommasobaldi
commited on
Commit
•
5d8fa8c
1
Parent(s):
fbbbbe9
working on text splitting
Browse files
app.py
CHANGED
@@ -100,7 +100,8 @@ def main() -> None:
|
|
100 |
output = pipe(sentence)
|
101 |
summary = output[0]["summary_text"]
|
102 |
for line in summary.split("."):
|
103 |
-
|
|
|
104 |
display_summary(summary_sentences)
|
105 |
|
106 |
|
|
|
100 |
output = pipe(sentence)
|
101 |
summary = output[0]["summary_text"]
|
102 |
for line in summary.split("."):
|
103 |
+
if line != "":
|
104 |
+
summary_sentences.append(line)
|
105 |
display_summary(summary_sentences)
|
106 |
|
107 |
|