SeoJunn commited on
Commit
e407b0e
β€’
1 Parent(s): 979fd2e

Refactor : json loader

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -57,8 +57,6 @@ def get_json_file(json_docs):
57
  f.write(json_docs.getvalue()) # PDF λ¬Έμ„œμ˜ λ‚΄μš©μ„ μž„μ‹œ νŒŒμΌμ— μ”λ‹ˆλ‹€.
58
  json_loader = JSONLoader(file_path=temp_filepath, jq_schema='.messages[].content', text_content=False)
59
  data = json_loader.load()
60
- pprint(data)
61
- print(data)
62
  return data
63
 
64
  # λ¬Έμ„œλ“€μ„ μ²˜λ¦¬ν•˜μ—¬ ν…μŠ€νŠΈ 청크둜 λ‚˜λˆ„λŠ” ν•¨μˆ˜μž…λ‹ˆλ‹€.
 
57
  f.write(json_docs.getvalue()) # PDF λ¬Έμ„œμ˜ λ‚΄μš©μ„ μž„μ‹œ νŒŒμΌμ— μ”λ‹ˆλ‹€.
58
  json_loader = JSONLoader(file_path=temp_filepath, jq_schema='.messages[].content', text_content=False)
59
  data = json_loader.load()
 
 
60
  return data
61
 
62
  # λ¬Έμ„œλ“€μ„ μ²˜λ¦¬ν•˜μ—¬ ν…μŠ€νŠΈ 청크둜 λ‚˜λˆ„λŠ” ν•¨μˆ˜μž…λ‹ˆλ‹€.