panda47 commited on
Commit
8b83eac
1 Parent(s): b528158

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -52,12 +52,10 @@ 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
- f = f.replace(',}','}')
56
- f = f.replace(',]',']')
57
  json_loader=JSONLoader(
58
  temp_filepath,
59
  jq_schema='.'
60
- #text_content=False
61
  )
62
  json_doc = json_loader.load()
63
  return json_doc
 
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='.'
58
+ text_content=False
59
  )
60
  json_doc = json_loader.load()
61
  return json_doc