tommasobaldi commited on
Commit
05800bd
·
1 Parent(s): 73567e4

working on text splitting

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -98,13 +98,14 @@ def main() -> None:
98
  )
99
  for sentence in sentences:
100
  token_list = [token for token in nltk.word_tokenize(sentence)]
101
- st.text(sentence + " " + str(len(token_list)))
102
- output = pipe(sentence)
103
- summary = output[0]["summary_text"]
104
- for line in summary.split("."):
105
- if line != "":
106
- summary_sentences.append(line)
107
- display_summary(summary_sentences)
 
108
 
109
 
110
  if __name__ == "__main__":
 
98
  )
99
  for sentence in sentences:
100
  token_list = [token for token in nltk.word_tokenize(sentence)]
101
+ st.markdown(sentence)
102
+ st.markdown(str(len(token_list)))
103
+ # output = pipe(sentence)
104
+ # summary = output[0]["summary_text"]
105
+ # for line in summary.split("."):
106
+ # if line != "":
107
+ # summary_sentences.append(line)
108
+ # display_summary(summary_sentences)
109
 
110
 
111
  if __name__ == "__main__":