Omnibus commited on
Commit
fe19668
·
verified ·
1 Parent(s): 2880c10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -81,14 +81,15 @@ def get_nouns(text=text,steps=1):
81
  print(key_cnt)
82
  print(noun_cnt)
83
 
 
84
  cnt=0
85
  go=True
86
  a="Z"
87
 
88
  step_allot=char_len*steps
89
- div_raw=(noun_cnt/step_allot)
90
  print(div_raw)
91
- div_steps=int(noun_cnt/step_allot)
92
  print(div_steps)
93
  div_remain=div_raw-div_steps
94
  print(div_remain)
@@ -102,10 +103,8 @@ def get_nouns(text=text,steps=1):
102
  step_cont_box=[]
103
  for ii in range(math.ceil(div_raw)):
104
  print(ii)
105
- step_cont_box.append("")
106
  print (step_cont_box)
107
- big_cnt=0
108
- cnt=0
109
  pos=len(step_cont_box)-1
110
  if go:
111
  for i, ea in enumerate(noun_box):
@@ -117,8 +116,10 @@ def get_nouns(text=text,steps=1):
117
  step_cont_box[pos]=control_char[cnt]
118
  print(step_cont_box)
119
  cnt+=1
 
120
  big_cnt+=1
121
  if big_cnt==noun_cnt:
 
122
  print("DONE")
123
  go=False
124
  '''
 
81
  print(key_cnt)
82
  print(noun_cnt)
83
 
84
+ big_cnt=0
85
  cnt=0
86
  go=True
87
  a="Z"
88
 
89
  step_allot=char_len*steps
90
+ div_raw=(step_allot/noun_cnt)
91
  print(div_raw)
92
+ div_steps=int(step_allot/noun_cnt)
93
  print(div_steps)
94
  div_remain=div_raw-div_steps
95
  print(div_remain)
 
103
  step_cont_box=[]
104
  for ii in range(math.ceil(div_raw)):
105
  print(ii)
106
+ step_cont_box.append("0")
107
  print (step_cont_box)
 
 
108
  pos=len(step_cont_box)-1
109
  if go:
110
  for i, ea in enumerate(noun_box):
 
116
  step_cont_box[pos]=control_char[cnt]
117
  print(step_cont_box)
118
  cnt+=1
119
+
120
  big_cnt+=1
121
  if big_cnt==noun_cnt:
122
+ print
123
  print("DONE")
124
  go=False
125
  '''