Update app.py
Browse files
app.py
CHANGED
|
@@ -36,9 +36,9 @@ def get_json_file(json_docs):
|
|
| 36 |
with open(temp_filepath, "wb") as f:
|
| 37 |
f.write(json_docs.getvalue())
|
| 38 |
json_loader = JSONLoader(
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
json_doc = json_loader.load()
|
| 43 |
return json_doc
|
| 44 |
|
|
|
|
| 36 |
with open(temp_filepath, "wb") as f:
|
| 37 |
f.write(json_docs.getvalue())
|
| 38 |
json_loader = JSONLoader(
|
| 39 |
+
file_path=temp_filepath,
|
| 40 |
+
jq_schema='.messages[].content',
|
| 41 |
+
text_content=False)
|
| 42 |
json_doc = json_loader.load()
|
| 43 |
return json_doc
|
| 44 |
|