panda47 commited on
Commit
b8ca4aa
·
1 Parent(s): 4ee5691

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -51,11 +51,11 @@ def get_json_file(json_docs):
51
  temp_dir = tempfile.TemporaryDirectory()
52
  temp_filepath=os.path.join(temp_dir.name, json_docs.name)
53
  with open(temp_filepath,"wb") as f:
54
- s = f.write(json_docs.getvalue())
55
- s = s.replace('\t','')
56
- s = s.replace('\n','')
57
- s = s.replace(',}','}')
58
- s = s.replace(',]',']')
59
  json_loader=JSONLoader(
60
  temp_filepath=os.path.join(temp_dir.name, json_docs.name),
61
  jq_schema='.',
 
51
  temp_dir = tempfile.TemporaryDirectory()
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.replace('\t','')
56
+ f.replace('\n','')
57
+ f.replace(',}','}')
58
+ f.replace(',]',']')
59
  json_loader=JSONLoader(
60
  temp_filepath=os.path.join(temp_dir.name, json_docs.name),
61
  jq_schema='.',