Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def get_json_file(json_docs):
|
|
56 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
57 |
with open(temp_filepath, "wb") as f:
|
58 |
f.write(json_docs.getvalue())
|
59 |
-
json_loader = JSONLoader(file_path=temp_filepath, jq_schema='.
|
60 |
data = json_loader.load()
|
61 |
return data
|
62 |
|
|
|
56 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
57 |
with open(temp_filepath, "wb") as f:
|
58 |
f.write(json_docs.getvalue())
|
59 |
+
json_loader = JSONLoader(file_path=temp_filepath, jq_schema='.headlines', text_content=False)
|
60 |
data = json_loader.load()
|
61 |
return data
|
62 |
|