LeeRuben commited on
Commit
a2b8f6f
Β·
1 Parent(s): 72f999a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -29,6 +29,12 @@ def get_pdf_text(pdf_docs):
29
  # μ•„λž˜ ν…μŠ€νŠΈ μΆ”μΆœ ν•¨μˆ˜λ₯Ό μž‘μ„±
30
 
31
  def get_text_file(docs):
 
 
 
 
 
 
32
  loader = JSONLoader(
33
  file_path='./example_data/facebook_chat.json',
34
  jq_schema='.messages[].content',
@@ -36,13 +42,6 @@ def get_text_file(docs):
36
 
37
  data = loader.load()
38
 
39
-
40
- def get_csv_file(docs):
41
- pass
42
-
43
- def get_json_file(docs):
44
- pass
45
-
46
 
47
  # λ¬Έμ„œλ“€μ„ μ²˜λ¦¬ν•˜μ—¬ ν…μŠ€νŠΈ 청크둜 λ‚˜λˆ„λŠ” ν•¨μˆ˜μž…λ‹ˆλ‹€.
48
  def get_text_chunks(documents):
 
29
  # μ•„λž˜ ν…μŠ€νŠΈ μΆ”μΆœ ν•¨μˆ˜λ₯Ό μž‘μ„±
30
 
31
  def get_text_file(docs):
32
+ pass
33
+
34
+ def get_csv_file(docs):
35
+ pass
36
+
37
+ def get_json_file(docs):
38
  loader = JSONLoader(
39
  file_path='./example_data/facebook_chat.json',
40
  jq_schema='.messages[].content',
 
42
 
43
  data = loader.load()
44
 
 
 
 
 
 
 
 
45
 
46
  # λ¬Έμ„œλ“€μ„ μ²˜λ¦¬ν•˜μ—¬ ν…μŠ€νŠΈ 청크둜 λ‚˜λˆ„λŠ” ν•¨μˆ˜μž…λ‹ˆλ‹€.
47
  def get_text_chunks(documents):