lds204 commited on
Commit
1f912ed
β€’
1 Parent(s): 4dcc654
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def get_json_file(json_docs):
49
  temp_dir = tempfile.TemporaryDirectory()
50
  temp_filepath = os.path.join(temp_dir.name, json_docs.name)
51
  with open(temp_filepath, "wb") as f: # μž„μ‹œ νŒŒμΌμ„ λ°”μ΄λ„ˆλ¦¬ μ“°κΈ° λͺ¨λ“œλ‘œ μ—½λ‹ˆλ‹€.
52
- f.write(json.loads(Path(temp_filepath).read_text()))
53
 
54
  json_loader = JSONLoader(temp_filepath)
55
  json_doc = json_loader.load()
 
49
  temp_dir = tempfile.TemporaryDirectory()
50
  temp_filepath = os.path.join(temp_dir.name, json_docs.name)
51
  with open(temp_filepath, "wb") as f: # μž„μ‹œ νŒŒμΌμ„ λ°”μ΄λ„ˆλ¦¬ μ“°κΈ° λͺ¨λ“œλ‘œ μ—½λ‹ˆλ‹€.
52
+ json.write(f)
53
 
54
  json_loader = JSONLoader(temp_filepath)
55
  json_doc = json_loader.load()