Omnibus commited on
Commit
d5ef006
·
verified ·
1 Parent(s): 097f973

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py CHANGED
@@ -97,6 +97,24 @@ def get_nouns(text=text,steps=1):
97
  print(steps_mult)
98
  print(math.ceil(steps_mult))
99
  step_list=[]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  for z in range(1,steps):
101
  if noun_cnt<=char_len*z:
102
  step_json={'step':z,'ends':control_char[:noun_cnt]}
@@ -117,6 +135,7 @@ def get_nouns(text=text,steps=1):
117
  print(list(noun_list.keys())[-1])
118
  else:
119
  cnt+=1
 
120
  return json_object,noun_list
121
 
122
 
 
97
  print(steps_mult)
98
  print(math.ceil(steps_mult))
99
  step_list=[]
100
+
101
+ step_control=""
102
+ step_cont_box=[]
103
+ for ii in range(math.ceil(div_raw)):
104
+ step_cont_box.append(0)
105
+ print step_cont_box
106
+ cnt_ea=0
107
+ pos=1
108
+ for i, ea in enumerate(noun_box):
109
+ if cnt >= char_len:
110
+ pos+=1
111
+ cnt=0
112
+ else:
113
+ step_cont_box[pos]=ea
114
+ print(step_cont_box)
115
+ cnt+=1
116
+
117
+ '''
118
  for z in range(1,steps):
119
  if noun_cnt<=char_len*z:
120
  step_json={'step':z,'ends':control_char[:noun_cnt]}
 
135
  print(list(noun_list.keys())[-1])
136
  else:
137
  cnt+=1
138
+ '''
139
  return json_object,noun_list
140
 
141