tommasobaldi commited on
Commit
2d14981
·
1 Parent(s): 6d14e62

update requirements.txt

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -100,7 +100,7 @@ def main() -> None:
100
  sentences = []
101
  token_count = 0
102
  sentence = ""
103
- for token in tokens not in ["."]:
104
  if token_count < 1024:
105
  sentence += "".join(token + " ")
106
  token_count += 1
@@ -118,9 +118,10 @@ def main() -> None:
118
  with st.spinner("Summarizing in progress..."):
119
  sentences = split_text(target_text_input)
120
  for sentence in sentences:
121
- output = pipe(sentence)
 
 
122
 
123
- st.markdown(output['summary_text'])
124
 
125
 
126
  if __name__ == "__main__":
 
100
  sentences = []
101
  token_count = 0
102
  sentence = ""
103
+ for token in tokens:
104
  if token_count < 1024:
105
  sentence += "".join(token + " ")
106
  token_count += 1
 
118
  with st.spinner("Summarizing in progress..."):
119
  sentences = split_text(target_text_input)
120
  for sentence in sentences:
121
+ st.markdown(sentence)
122
+ # output = pipe(sentence)
123
+
124
 
 
125
 
126
 
127
  if __name__ == "__main__":