Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -228,6 +228,7 @@ def compress_data_og(c, instruct, history):
|
|
| 228 |
|
| 229 |
|
| 230 |
def summarize(inp,history,report_check,sum_mem_check,data=None):
|
|
|
|
| 231 |
json_box=[]
|
| 232 |
error_box=""
|
| 233 |
json_out=""
|
|
@@ -264,13 +265,18 @@ def summarize(inp,history,report_check,sum_mem_check,data=None):
|
|
| 264 |
c +=1
|
| 265 |
print (f'c2:: {c}')
|
| 266 |
rawp = compress_data_og(c,inp,out)
|
|
|
|
|
|
|
| 267 |
else:
|
| 268 |
rawp = out
|
|
|
|
|
|
|
|
|
|
| 269 |
else:
|
| 270 |
rawp = "Provide a valid data source"
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
|
| 275 |
|
| 276 |
#################################
|
|
|
|
| 228 |
|
| 229 |
|
| 230 |
def summarize(inp,history,report_check,sum_mem_check,data=None):
|
| 231 |
+
|
| 232 |
json_box=[]
|
| 233 |
error_box=""
|
| 234 |
json_out=""
|
|
|
|
| 265 |
c +=1
|
| 266 |
print (f'c2:: {c}')
|
| 267 |
rawp = compress_data_og(c,inp,out)
|
| 268 |
+
history.clear()
|
| 269 |
+
history.append((inp,rawp))
|
| 270 |
else:
|
| 271 |
rawp = out
|
| 272 |
+
history.clear()
|
| 273 |
+
history.append((inp,rawp))
|
| 274 |
+
yield "", history,error_box,json_out
|
| 275 |
else:
|
| 276 |
rawp = "Provide a valid data source"
|
| 277 |
+
history.clear()
|
| 278 |
+
history.append((inp,rawp))
|
| 279 |
+
yield "", history,error_box,json_out
|
| 280 |
|
| 281 |
|
| 282 |
#################################
|