Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,10 +50,12 @@ def get_json_file(json_datas):
|
|
50 |
jsonfile.write(json_datas.getvalue().decode('utf-8')) # JSON 데이터를 파일에 씁니다.
|
51 |
json_loader = JSONLoader(
|
52 |
temp_filepath,
|
53 |
-
jq_schema=
|
54 |
-
text_content=False
|
|
|
55 |
json_data = json_loader.load()
|
56 |
return json_data
|
|
|
57 |
|
58 |
# 문서들을 처리하여 텍스트 청크로 나누는 함수입니다.
|
59 |
def get_text_chunks(documents):
|
|
|
50 |
jsonfile.write(json_datas.getvalue().decode('utf-8')) # JSON 데이터를 파일에 씁니다.
|
51 |
json_loader = JSONLoader(
|
52 |
temp_filepath,
|
53 |
+
jq_schema=None, # jq_schema를 None으로 설정하여 전체 데이터를 가져옵니다.
|
54 |
+
text_content=False
|
55 |
+
)
|
56 |
json_data = json_loader.load()
|
57 |
return json_data
|
58 |
+
|
59 |
|
60 |
# 문서들을 처리하여 텍스트 청크로 나누는 함수입니다.
|
61 |
def get_text_chunks(documents):
|