Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -111,15 +111,16 @@ def get_nouns(text=text,steps=1):
|
|
| 111 |
if go:
|
| 112 |
for i, ea in enumerate(noun_box):
|
| 113 |
if go:
|
| 114 |
-
if cnt > char_len:
|
| 115 |
go1=True
|
| 116 |
for ii,ev in enumerate(step_cont_box):
|
| 117 |
-
if
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
|
|
|
| 123 |
#pos-=1
|
| 124 |
cnt=0
|
| 125 |
else:
|
|
@@ -129,7 +130,6 @@ def get_nouns(text=text,steps=1):
|
|
| 129 |
print(step_cont_box)
|
| 130 |
big_cnt+=1
|
| 131 |
if big_cnt==noun_cnt:
|
| 132 |
-
print
|
| 133 |
print("DONE")
|
| 134 |
go=False
|
| 135 |
return json_object,noun_list
|
|
|
|
| 111 |
if go:
|
| 112 |
for i, ea in enumerate(noun_box):
|
| 113 |
if go:
|
| 114 |
+
if cnt > char_len+1:
|
| 115 |
go1=True
|
| 116 |
for ii,ev in enumerate(step_cont_box):
|
| 117 |
+
if go:
|
| 118 |
+
if ev >= char_len:
|
| 119 |
+
step_cont_box[ii]=0
|
| 120 |
+
if go1==True:
|
| 121 |
+
step_cont_box[ii-1]=step_cont_box[ii-1]+1
|
| 122 |
+
go1=False
|
| 123 |
+
|
| 124 |
#pos-=1
|
| 125 |
cnt=0
|
| 126 |
else:
|
|
|
|
| 130 |
print(step_cont_box)
|
| 131 |
big_cnt+=1
|
| 132 |
if big_cnt==noun_cnt:
|
|
|
|
| 133 |
print("DONE")
|
| 134 |
go=False
|
| 135 |
return json_object,noun_list
|