Spaces:
Running
Running
jq_schema=".messages[]"로 수정
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def get_json_file(json_docs):
|
|
39 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
40 |
with open(temp_filepath, "wb") as f:
|
41 |
f.write(json_docs.getvalue())
|
42 |
-
json_loader = JSONLoader(file_path = temp_filepath, jq_schema='.messages[].content'
|
43 |
json_doc = json_loader.load()
|
44 |
return json_doc
|
45 |
|
|
|
39 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
40 |
with open(temp_filepath, "wb") as f:
|
41 |
f.write(json_docs.getvalue())
|
42 |
+
json_loader = JSONLoader(file_path = temp_filepath, jq_schema='.messages[].content')
|
43 |
json_doc = json_loader.load()
|
44 |
return json_doc
|
45 |
|