JinHyeong99 commited on
Commit
823949f
Β·
1 Parent(s): 4c310b8
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -50,9 +50,7 @@ def get_csv_file(csv_docs):
50
  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
- file_path = temp_filepath
55
- )
56
  json_doc = json_loader.load(temp_filepath)
57
  return json_doc
58
 
 
50
  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
  json_doc = json_loader.load(temp_filepath)
55
  return json_doc
56