Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -104,17 +104,19 @@ def get_nouns(text=text,steps=1):
|
|
104 |
step_cont_box=[]
|
105 |
for ii in range(steps):
|
106 |
print(ii)
|
107 |
-
step_cont_box.append(
|
108 |
#print (step_cont_box)
|
109 |
pos=len(step_cont_box)-1
|
110 |
if go:
|
111 |
for i, ea in enumerate(noun_box):
|
112 |
if go:
|
113 |
if cnt >= char_len:
|
114 |
-
pos
|
|
|
115 |
cnt=0
|
116 |
else:
|
117 |
-
step_cont_box[pos]=control_char[cnt]
|
|
|
118 |
print(step_cont_box)
|
119 |
cnt+=1
|
120 |
big_cnt+=1
|
|
|
104 |
step_cont_box=[]
|
105 |
for ii in range(steps):
|
106 |
print(ii)
|
107 |
+
step_cont_box.append(0)
|
108 |
#print (step_cont_box)
|
109 |
pos=len(step_cont_box)-1
|
110 |
if go:
|
111 |
for i, ea in enumerate(noun_box):
|
112 |
if go:
|
113 |
if cnt >= char_len:
|
114 |
+
step_cont_box[pos-1]+=1
|
115 |
+
#pos-=1
|
116 |
cnt=0
|
117 |
else:
|
118 |
+
#step_cont_box[pos]=control_char[cnt]
|
119 |
+
step_cont_box[pos]+=1
|
120 |
print(step_cont_box)
|
121 |
cnt+=1
|
122 |
big_cnt+=1
|