Omnibus commited on
Commit
0cb3636
·
verified ·
1 Parent(s): c64af94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -115,12 +115,12 @@ def get_nouns(text=text,steps=1):
115
  if go:
116
  for i, ea in enumerate(noun_box):
117
  if go:
118
- if cnt == char_len:
119
  #print(step_cont_box)
120
  go1=True
121
  for ii,ev in enumerate(step_cont_box):
122
  if go:
123
- if ev >= char_len:
124
  step_cont_box[ii]=0
125
  if go1==True:
126
  step_cont_box[ii-1]=step_cont_box[ii-1]+1
 
115
  if go:
116
  for i, ea in enumerate(noun_box):
117
  if go:
118
+ if cnt > char_len-1:
119
  #print(step_cont_box)
120
  go1=True
121
  for ii,ev in enumerate(step_cont_box):
122
  if go:
123
+ if ev >= char_len-1:
124
  step_cont_box[ii]=0
125
  if go1==True:
126
  step_cont_box[ii-1]=step_cont_box[ii-1]+1