Spaces:
Runtime error
Runtime error
Commit ยท
9518af1
1
Parent(s): 1bfbb75
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ def get_json_file(docs):
|
|
| 55 |
temp_filepath = os.path.join(temp_dir.name, docs.name) # ์์ ํ์ผ ๊ฒฝ๋ก๋ฅผ ์์ฑํฉ๋๋ค.
|
| 56 |
with open(temp_filepath, "wb") as f:
|
| 57 |
f.write(docs.getvalue())
|
| 58 |
-
|
| 59 |
json_loader = JSONLoader(f.name,
|
| 60 |
jq_schema='.scans[].relationships',
|
| 61 |
text_content=False)
|
|
|
|
| 55 |
temp_filepath = os.path.join(temp_dir.name, docs.name) # ์์ ํ์ผ ๊ฒฝ๋ก๋ฅผ ์์ฑํฉ๋๋ค.
|
| 56 |
with open(temp_filepath, "wb") as f:
|
| 57 |
f.write(docs.getvalue())
|
| 58 |
+
f.seek(0)
|
| 59 |
json_loader = JSONLoader(f.name,
|
| 60 |
jq_schema='.scans[].relationships',
|
| 61 |
text_content=False)
|