Spaces:
Build error
Build error
Commit ยท
8fbf251
1
Parent(s): 30596e9
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def get_json_file(json_docs):
|
|
| 52 |
with open(temp_filepath, "wb") as f:
|
| 53 |
f.write(json_docs.getvalue())
|
| 54 |
# jq_schema๋ฅผ ์์ ํ์ฌ employees ํค์ ํด๋นํ๋ ๋ด์ฉ์ ๊ฐ์ ธ์ค๋๋ก ๋ณ๊ฒฝํฉ๋๋ค.
|
| 55 |
-
json_loader = JSONLoader(file_path=temp_filepath, jq_schema='.employees', text_content=
|
| 56 |
json_doc = json_loader.load()
|
| 57 |
return json_doc
|
| 58 |
|
|
|
|
| 52 |
with open(temp_filepath, "wb") as f:
|
| 53 |
f.write(json_docs.getvalue())
|
| 54 |
# jq_schema๋ฅผ ์์ ํ์ฌ employees ํค์ ํด๋นํ๋ ๋ด์ฉ์ ๊ฐ์ ธ์ค๋๋ก ๋ณ๊ฒฝํฉ๋๋ค.
|
| 55 |
+
json_loader = JSONLoader(file_path=temp_filepath, jq_schema='.employees', text_content=False)
|
| 56 |
json_doc = json_loader.load()
|
| 57 |
return json_doc
|
| 58 |
|