panda47 commited on
Commit
c868e2f
·
1 Parent(s): 1e4028a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,8 +55,8 @@ def get_json_file(json_docs):
55
  text_content=False,
56
  json_lines=True
57
  )
58
- with open(temp_filepath,'r') as f:
59
- s = f.read(json_docs.getvalue())
60
  s = s.replace('\t','')
61
  s = s.replace('\n','')
62
  s = s.replace(',}','}')
 
55
  text_content=False,
56
  json_lines=True
57
  )
58
+ with open(temp_filepath,'wb') as f:
59
+ s = f.write(json_docs.getvalue())
60
  s = s.replace('\t','')
61
  s = s.replace('\n','')
62
  s = s.replace(',}','}')