Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def get_json_file(json_docs):
|
|
| 40 |
f.write(json_docs.getvalue()) # PDF ๋ฌธ์์ ๋ด์ฉ์ ์์ ํ์ผ์ ์๋๋ค.
|
| 41 |
json_loader = JSONLoader(
|
| 42 |
file_path=temp_filepath,
|
| 43 |
-
jq_schema='.
|
| 44 |
text_content=False)
|
| 45 |
json_doc = json_loader.load() # ํ
์คํธ๋ฅผ ์ถ์ถํฉ๋๋ค.
|
| 46 |
return json_doc # ์ถ์ถํ ํ
์คํธ๋ฅผ ๋ฐํํฉ๋๋ค.
|
|
|
|
| 40 |
f.write(json_docs.getvalue()) # PDF ๋ฌธ์์ ๋ด์ฉ์ ์์ ํ์ผ์ ์๋๋ค.
|
| 41 |
json_loader = JSONLoader(
|
| 42 |
file_path=temp_filepath,
|
| 43 |
+
jq_schema='.chat[].message',
|
| 44 |
text_content=False)
|
| 45 |
json_doc = json_loader.load() # ํ
์คํธ๋ฅผ ์ถ์ถํฉ๋๋ค.
|
| 46 |
return json_doc # ์ถ์ถํ ํ
์คํธ๋ฅผ ๋ฐํํฉ๋๋ค.
|