JinHyeong99 commited on
Commit
de7bc3f
Β·
1 Parent(s): 3c1e308
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def get_json_file(json_docs):
51
  temp_dir = tempfile.TemporaryDirectory() # μž„μ‹œ 디렉토리λ₯Ό μƒμ„±ν•©λ‹ˆλ‹€.
52
  temp_filepath = os.path.join(temp_dir.name, json_docs.name) # μž„μ‹œ 파일 경둜λ₯Ό μƒμ„±ν•©λ‹ˆλ‹€.
53
  json_loader = JSONLoader(
54
- jq_schema='.messages[]'
55
  )
56
  json_doc = json_loader.load(temp_filepath)
57
  return json_doc
 
51
  temp_dir = tempfile.TemporaryDirectory() # μž„μ‹œ 디렉토리λ₯Ό μƒμ„±ν•©λ‹ˆλ‹€.
52
  temp_filepath = os.path.join(temp_dir.name, json_docs.name) # μž„μ‹œ 파일 경둜λ₯Ό μƒμ„±ν•©λ‹ˆλ‹€.
53
  json_loader = JSONLoader(
54
+ filepath = temp_filepath
55
  )
56
  json_doc = json_loader.load(temp_filepath)
57
  return json_doc