ksvmuralidhar commited on
Commit
07c92c4
·
verified ·
1 Parent(s): fde44b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -62,8 +62,9 @@ def inference_long_text(txt, n_sents):
62
  for sent in doc.sents:
63
  if n >= n_sents:
64
  break
65
- input_txt.append(sent.text)
66
- n += 1
 
67
 
68
  with st.spinner('Rewriting...'):
69
  paraphrased_txt = inference(input_txt)
 
62
  for sent in doc.sents:
63
  if n >= n_sents:
64
  break
65
+ if len(sent.text.split()) >= 3:
66
+ input_txt.append(sent.text)
67
+ n += 1
68
 
69
  with st.spinner('Rewriting...'):
70
  paraphrased_txt = inference(input_txt)