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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -57,6 +57,8 @@ 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
  return data
61
 
62
  # λ¬Έμ„œλ“€μ„ μ²˜λ¦¬ν•˜μ—¬ ν…μŠ€νŠΈ 청크둜 λ‚˜λˆ„λŠ” ν•¨μˆ˜μž…λ‹ˆλ‹€.
 
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
  # λ¬Έμ„œλ“€μ„ μ²˜λ¦¬ν•˜μ—¬ ν…μŠ€νŠΈ 청크둜 λ‚˜λˆ„λŠ” ν•¨μˆ˜μž…λ‹ˆλ‹€.