tommasobaldi commited on
Commit
fbbbbe9
·
1 Parent(s): 42540ef

working on text splitting

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- summary_sentences.append(summary.split("."))
 
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