Spaces:
Sleeping
Sleeping
Commit
·
de868e7
1
Parent(s):
3bd7aa1
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ 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(file_path=temp_filepath, jq_schema='.messages[].content', text_content=
|
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(file_path=temp_filepath, jq_schema='.messages[].content', text_content=True)
|
55 |
json_doc = json_loader.load()
|
56 |
return json_doc
|
57 |
|