Update app.py
Browse files
app.py
CHANGED
@@ -52,8 +52,8 @@ def get_json_file(json_docs):
|
|
52 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
53 |
with open(temp_filepath, "wb") as f:
|
54 |
f.write(json_docs.getvalue())
|
55 |
-
json_docs =
|
56 |
-
json_docs =
|
57 |
json_loader=JSONLoader(
|
58 |
temp_filepath,
|
59 |
jq_schema='.'
|
|
|
52 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
53 |
with open(temp_filepath, "wb") as f:
|
54 |
f.write(json_docs.getvalue())
|
55 |
+
json_docs = json_docs.replace(',}','}')
|
56 |
+
json_docs = json_docs.replace(',]',']')
|
57 |
json_loader=JSONLoader(
|
58 |
temp_filepath,
|
59 |
jq_schema='.'
|