panda47 commited on
Commit
b528158
1 Parent(s): 101398c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = json_docs.replace(',}','}')
56
- json_docs = json_docs.replace(',]',']')
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='.'