Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,14 @@ def get_json_file(json_docs):
|
|
55 |
text_content=False,
|
56 |
json_lines=True
|
57 |
)
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
return json_doc
|
60 |
|
61 |
|
|
|
55 |
text_content=False,
|
56 |
json_lines=True
|
57 |
)
|
58 |
+
with open(temp_filepath,'r') as f:
|
59 |
+
s = f.read()
|
60 |
+
s = s.replace('\t','')
|
61 |
+
s = s.replace('\n','')
|
62 |
+
s = s.replace(',}','}')
|
63 |
+
s = s.replace(',]',']')
|
64 |
+
json_doc = json.loads(s)
|
65 |
+
# json_doc = json_loader.load()
|
66 |
return json_doc
|
67 |
|
68 |
|