Update app.py
Browse files
app.py
CHANGED
@@ -220,7 +220,7 @@ def compress_data_og(c, instruct, history, seed):
|
|
220 |
|
221 |
new_history = resp
|
222 |
print (resp)
|
223 |
-
|
224 |
e=e+chunk
|
225 |
s=s+chunk
|
226 |
|
@@ -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 |
-
|
269 |
-
|
270 |
-
print (f'c2:: {c}')
|
271 |
rawp = compress_data_og(c,inp,out,seed)
|
272 |
history.clear()
|
273 |
history.append((inp,rawp))
|
|
|
220 |
|
221 |
new_history = resp
|
222 |
print (resp)
|
223 |
+
out+=resp
|
224 |
e=e+chunk
|
225 |
s=s+chunk
|
226 |
|
|
|
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))
|