tommasobaldi commited on
Commit
078e622
·
1 Parent(s): 87fbf70

working on text splitting

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -123,7 +123,7 @@ def main() -> None:
123
  if summarize_button:
124
  if target_text_input is not "":
125
  with st.spinner("Summarizing in progress..."):
126
- sentences = split_sentences_by_token_length(target_text_input)
127
  for sentence in sentences:
128
  st.text(sentence)
129
  #output = pipe(sentence)
 
123
  if summarize_button:
124
  if target_text_input is not "":
125
  with st.spinner("Summarizing in progress..."):
126
+ sentences = split_sentences_by_token_length(target_text_input, 600)
127
  for sentence in sentences:
128
  st.text(sentence)
129
  #output = pipe(sentence)