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 |
-
|
| 56 |
-
|
| 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 |
+
f = f.replace(',}','}')
|
| 56 |
+
f = f.replace(',]',']')
|
| 57 |
json_loader=JSONLoader(
|
| 58 |
temp_filepath,
|
| 59 |
jq_schema='.'
|