Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,11 @@ def get_json_file(json_docs):
|
|
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 |
-
json_loader
|
|
|
|
|
|
|
|
|
56 |
json_doc = json_loader.load()
|
57 |
return json_doc
|
58 |
|
|
|
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 |
+
json_loader=JSONLoader(
|
56 |
+
temp_filepath = os.path.join(temp_dir.name, json_docs.name),
|
57 |
+
jq_schema='messages[].content',
|
58 |
+
text_content=False
|
59 |
+
)
|
60 |
json_doc = json_loader.load()
|
61 |
return json_doc
|
62 |
|