ai
Browse files
app.py
CHANGED
@@ -50,12 +50,6 @@ def get_json_file(json_docs):
|
|
50 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
51 |
with open(temp_filepath, "wb") as f: # ์์ ํ์ผ์ ๋ฐ์ด๋๋ฆฌ ์ฐ๊ธฐ ๋ชจ๋๋ก ์ฝ๋๋ค.
|
52 |
f.write(json_docs.getvalue())
|
53 |
-
# json_loader = JSONLoader(
|
54 |
-
# file_path = temp_filepath,
|
55 |
-
# jq_schema='.messages[].content',
|
56 |
-
# text_content=False)
|
57 |
-
|
58 |
-
# json_doc = json_loader.load()
|
59 |
json_doc = json.loads(Path(temp_filepath).read_text())
|
60 |
return json_doc
|
61 |
|
|
|
50 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
51 |
with open(temp_filepath, "wb") as f: # ์์ ํ์ผ์ ๋ฐ์ด๋๋ฆฌ ์ฐ๊ธฐ ๋ชจ๋๋ก ์ฝ๋๋ค.
|
52 |
f.write(json_docs.getvalue())
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
json_doc = json.loads(Path(temp_filepath).read_text())
|
54 |
return json_doc
|
55 |
|