Spaces:
Sleeping
Sleeping
kms
commited on
Commit
·
98dc88c
1
Parent(s):
12adb13
new json
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(temp_filepath, jq_schema='.messages[].content', text_content=False)
|
55 |
json_docs = json_loader.load()
|
56 |
return json_docs
|
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(filepath=temp_filepath, jq_schema='.messages[].content', text_content=False)
|
55 |
json_docs = json_loader.load()
|
56 |
return json_docs
|
57 |
|