Update app.py

#2
by LeeRuben - opened
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -29,8 +29,12 @@ def get_pdf_text(pdf_docs):
29
  # ์•„๋ž˜ ํ…์ŠคํŠธ ์ถ”์ถœ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑ
30
 
31
  def get_text_file(docs):
32
- pass
 
 
 
33
 
 
34
 
35
  def get_csv_file(docs):
36
  pass
 
29
  # ์•„๋ž˜ ํ…์ŠคํŠธ ์ถ”์ถœ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑ
30
 
31
  def get_text_file(docs):
32
+ loader = JSONLoader(
33
+ file_path='./example_data/facebook_chat.json',
34
+ jq_schema='.messages[].content',
35
+ text_content=False)
36
 
37
+ data = loader.load()
38
 
39
  def get_csv_file(docs):
40
  pass