Omnibus commited on
Commit
6ec6bb6
·
verified ·
1 Parent(s): bcf0671

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -150,7 +150,15 @@ def compress_data(c,purpose, task, history):
150
  def get_records(inp,data):
151
  key_box=[]
152
  seed=random.randint(1,1000000000)
153
- print (c)
 
 
 
 
 
 
 
 
154
  divr=int(c)/MAX_DATA
155
  divi=int(divr)+1 if divr != int(divr) else int(divr)
156
  chunk = int(int(c)/divr)
 
150
  def get_records(inp,data):
151
  key_box=[]
152
  seed=random.randint(1,1000000000)
153
+ print(inp)
154
+ out = str(data)
155
+ rl = len(out)
156
+ print(f'rl:: {rl}')
157
+ c=1
158
+ for i in str(out):
159
+ if i == " " or i=="," or i=="\n" or i=="/" or i=="." or i=="<":
160
+ c +=1
161
+ print (f'c:: {c}')
162
  divr=int(c)/MAX_DATA
163
  divi=int(divr)+1 if divr != int(divr) else int(divr)
164
  chunk = int(int(c)/divr)