Update app.py
Browse files
app.py
CHANGED
@@ -246,20 +246,20 @@ def summarize(inp,history,mem_check,seed=None,data=None):
|
|
246 |
|
247 |
if data != "Error" and data != "" and data != None:
|
248 |
print(inp)
|
249 |
-
out = str(data)
|
250 |
-
rl = len(out)
|
251 |
-
print(f'rl:: {rl}')
|
252 |
-
c=1
|
253 |
-
for i in str(out):
|
254 |
-
|
255 |
-
|
256 |
-
|
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(
|
263 |
print (out)
|
264 |
rl = len(out)
|
265 |
print(f'rl:: {rl}')
|
|
|
246 |
|
247 |
if data != "Error" and data != "" and data != None:
|
248 |
print(inp)
|
249 |
+
#out = str(data)
|
250 |
+
#rl = len(out)
|
251 |
+
#print(f'rl:: {rl}')
|
252 |
+
#c=1
|
253 |
+
#for i in str(out):
|
254 |
+
# #print(f'i:: {i}')
|
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(data)
|
263 |
print (out)
|
264 |
rl = len(out)
|
265 |
print(f'rl:: {rl}')
|