panda47 commited on
Commit
f9e440e
·
1 Parent(s): 074b82b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -52,6 +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_loader=JSONLoader(
56
  temp_filepath,
57
  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='.'