Update app.py
Browse files
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,'
|
59 |
-
s = f.
|
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(',}','}')
|