Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|