Update app.py
#2
by
LeeRuben
- opened
app.py
CHANGED
|
@@ -29,8 +29,12 @@ def get_pdf_text(pdf_docs):
|
|
| 29 |
# ์๋ ํ
์คํธ ์ถ์ถ ํจ์๋ฅผ ์์ฑ
|
| 30 |
|
| 31 |
def get_text_file(docs):
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
| 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
|