DDingcheol commited on
Commit
30596e9
1 Parent(s): de868e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -51,7 +51,8 @@ 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=True)
 
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
+ # jq_schema를 수정하여 employees 키에 해당하는 내용을 가져오도록 변경합니다.
55
+ json_loader = JSONLoader(file_path=temp_filepath, jq_schema='.employees', text_content=True)
56
  json_doc = json_loader.load()
57
  return json_doc
58