Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,12 +83,25 @@ def get_nouns(text=text,steps=1):
|
|
| 83 |
cnt=0
|
| 84 |
go=True
|
| 85 |
a="Z"
|
| 86 |
-
|
| 87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
if go:
|
| 89 |
noun_control=f'{control_val[i]}{control_char[ii]}'
|
| 90 |
for i,ea in enumerate(range(steps)):
|
| 91 |
-
|
| 92 |
if go:
|
| 93 |
for ii,sent in enumerate(noun_box):
|
| 94 |
|
|
|
|
| 83 |
cnt=0
|
| 84 |
go=True
|
| 85 |
a="Z"
|
| 86 |
+
|
| 87 |
+
div_steps=int(noun_cnt/steps)
|
| 88 |
+
|
| 89 |
+
print(div_steps)
|
| 90 |
+
div_remain=noun_cnt%steps
|
| 91 |
+
print(div_remain)
|
| 92 |
+
steps_mult=div_remain*char_len
|
| 93 |
+
steps_mult=div_remain*char_len
|
| 94 |
+
print(steps_mult)
|
| 95 |
+
|
| 96 |
+
step_list=[]
|
| 97 |
+
for z in range(1,steps):
|
| 98 |
+
if noun_cnt<=char_len*z:
|
| 99 |
+
step_json={'step':z,'ends':control_char[:noun_cnt]}
|
| 100 |
+
print(f'step_json:: {step_json}')
|
| 101 |
+
|
| 102 |
if go:
|
| 103 |
noun_control=f'{control_val[i]}{control_char[ii]}'
|
| 104 |
for i,ea in enumerate(range(steps)):
|
|
|
|
| 105 |
if go:
|
| 106 |
for ii,sent in enumerate(noun_box):
|
| 107 |
|