johann22 commited on
Commit
a0b431c
·
verified ·
1 Parent(s): 5d8f821

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
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
- #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))
 
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))