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