Omnibus commited on
Commit
33565d1
·
verified ·
1 Parent(s): 3082a3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,10 +104,10 @@ def get_nouns(text=text,steps=1):
104
  step_cont_box.append(0)
105
  print (step_cont_box)
106
  cnt_ea=0
107
- pos=1
108
  for i, ea in enumerate(noun_box):
109
  if cnt >= char_len:
110
- pos+=1
111
  cnt=0
112
  else:
113
  step_cont_box[pos]=control_char[cnt]
 
104
  step_cont_box.append(0)
105
  print (step_cont_box)
106
  cnt_ea=0
107
+ pos=len(step_cont_box)-1
108
  for i, ea in enumerate(noun_box):
109
  if cnt >= char_len:
110
+ pos-=1
111
  cnt=0
112
  else:
113
  step_cont_box[pos]=control_char[cnt]