Update app.py
Browse files
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):
|