Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -397,6 +397,7 @@ def summarize(inp,history,report_check,sum_check,mem_check,data=None,files=None,
|
|
397 |
rawp = compress_data_og(c,inp,out)
|
398 |
else:
|
399 |
rawp = out
|
|
|
400 |
else:
|
401 |
rawp = "Provide a valid data source"
|
402 |
history.clear()
|
@@ -615,7 +616,7 @@ def save_memory(purpose, history):
|
|
615 |
repo_type="dataset",
|
616 |
)
|
617 |
lines = resp.strip().strip("\n").split("\n")
|
618 |
-
format_json(lines)
|
619 |
|
620 |
r = requests.get(f'{save_data}mem-test2/main.json')
|
621 |
print(f'status code main:: {r.status_code}')
|
|
|
397 |
rawp = compress_data_og(c,inp,out)
|
398 |
else:
|
399 |
rawp = out
|
400 |
+
json_out = format_json(json_out)
|
401 |
else:
|
402 |
rawp = "Provide a valid data source"
|
403 |
history.clear()
|
|
|
616 |
repo_type="dataset",
|
617 |
)
|
618 |
lines = resp.strip().strip("\n").split("\n")
|
619 |
+
#formatted_json=format_json(lines)
|
620 |
|
621 |
r = requests.get(f'{save_data}mem-test2/main.json')
|
622 |
print(f'status code main:: {r.status_code}')
|