Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,41 +110,18 @@ def get_nouns(text=text,steps=1):
|
|
| 110 |
if go:
|
| 111 |
for i, ea in enumerate(noun_box):
|
| 112 |
if go:
|
|
|
|
|
|
|
| 113 |
if cnt >= char_len:
|
| 114 |
pos-=1
|
| 115 |
cnt=0
|
| 116 |
else:
|
| 117 |
-
step_cont_box[pos]=control_char[cnt]
|
| 118 |
-
print(step_cont_box)
|
| 119 |
cnt+=1
|
| 120 |
-
|
| 121 |
big_cnt+=1
|
| 122 |
if big_cnt==noun_cnt:
|
| 123 |
print
|
| 124 |
print("DONE")
|
| 125 |
go=False
|
| 126 |
-
'''
|
| 127 |
-
for z in range(1,steps):
|
| 128 |
-
if noun_cnt<=char_len*z:
|
| 129 |
-
step_json={'step':z,'ends':control_char[:noun_cnt]}
|
| 130 |
-
print(f'step_json:: {step_json}')
|
| 131 |
-
|
| 132 |
-
if go:
|
| 133 |
-
noun_control=f'{control_val[i]}{control_char[ii]}'
|
| 134 |
-
for i,ea in enumerate(range(steps)):
|
| 135 |
-
if go:
|
| 136 |
-
for ii,sent in enumerate(noun_box):
|
| 137 |
-
|
| 138 |
-
#for iii in
|
| 139 |
-
noun_list[noun_control]=sent
|
| 140 |
-
|
| 141 |
-
if cnt == noun_cnt-1:
|
| 142 |
-
print('done')
|
| 143 |
-
go=False
|
| 144 |
-
print(list(noun_list.keys())[-1])
|
| 145 |
-
else:
|
| 146 |
-
cnt+=1
|
| 147 |
-
'''
|
| 148 |
return json_object,noun_list
|
| 149 |
|
| 150 |
|
|
|
|
| 110 |
if go:
|
| 111 |
for i, ea in enumerate(noun_box):
|
| 112 |
if go:
|
| 113 |
+
step_cont_box[pos]=control_char[cnt]
|
| 114 |
+
print(step_cont_box)
|
| 115 |
if cnt >= char_len:
|
| 116 |
pos-=1
|
| 117 |
cnt=0
|
| 118 |
else:
|
|
|
|
|
|
|
| 119 |
cnt+=1
|
|
|
|
| 120 |
big_cnt+=1
|
| 121 |
if big_cnt==noun_cnt:
|
| 122 |
print
|
| 123 |
print("DONE")
|
| 124 |
go=False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
return json_object,noun_list
|
| 126 |
|
| 127 |
|