Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -255,19 +255,19 @@ def summarize(inp,history,mem_check,seed=None,data=None):
|
|
| 255 |
if i == " " or i=="," or i=="\n" or i.isalpha()==True or i.isnumeric()==True:
|
| 256 |
c +=1
|
| 257 |
print (f'c:: {c}')
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
rawp = compress_data_og(c,inp,out,seed)
|
| 272 |
history.clear()
|
| 273 |
history.append((inp,rawp))
|
|
|
|
| 255 |
if i == " " or i=="," or i=="\n" or i.isalpha()==True or i.isnumeric()==True:
|
| 256 |
c +=1
|
| 257 |
print (f'c:: {c}')
|
| 258 |
+
json_out = compress_data(c,inp,out,seed)
|
| 259 |
+
history = [(inp,"Generating Report...")]
|
| 260 |
+
yield "", history,error_box,json_out
|
| 261 |
|
| 262 |
+
out = str(json_out)
|
| 263 |
+
print (out)
|
| 264 |
+
rl = len(out)
|
| 265 |
+
print(f'rl:: {rl}')
|
| 266 |
+
c=1
|
| 267 |
+
for i in str(out):
|
| 268 |
+
if i == " " or i=="," or i=="\n" or i.isalpha()==True or i.isnumeric()==True:
|
| 269 |
+
c +=1
|
| 270 |
+
print (f'c2:: {c}')
|
| 271 |
rawp = compress_data_og(c,inp,out,seed)
|
| 272 |
history.clear()
|
| 273 |
history.append((inp,rawp))
|