Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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
|