Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,10 @@ def get_json_file(json_docs):
|
|
51 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
52 |
with open(temp_filepath, "wb") as f:
|
53 |
f.write(json_docs.getvalue())
|
54 |
-
json_loader = JSONLoader(temp_filepath
|
|
|
|
|
|
|
55 |
json_doc = json_loader.load()
|
56 |
return json_doc
|
57 |
|
|
|
51 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
52 |
with open(temp_filepath, "wb") as f:
|
53 |
f.write(json_docs.getvalue())
|
54 |
+
json_loader = JSONLoader(temp_filepath,
|
55 |
+
jq_schema='.messages[].content',
|
56 |
+
text_content=False
|
57 |
+
)
|
58 |
json_doc = json_loader.load()
|
59 |
return json_doc
|
60 |
|