DDingcheol commited on
Commit
8fbf251
โ€ข
1 Parent(s): 30596e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def get_json_file(json_docs):
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
 
 
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=False)
56
  json_doc = json_loader.load()
57
  return json_doc
58