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='.messages[].content')
|
60 |
json_doc = json_loader.load()
|
61 |
print(json_doc)
|
62 |
return json_doc
|
|
|
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='.messages[].content', text_content=False)
|
60 |
json_doc = json_loader.load()
|
61 |
print(json_doc)
|
62 |
return json_doc
|