Spaces:
Runtime error
Runtime error
JinHyeong99
commited on
Commit
·
3f951cd
1
Parent(s):
7ec593e
app.py
CHANGED
@@ -51,7 +51,7 @@ def get_json_file(json_docs):
|
|
51 |
temp_dir = tempfile.TemporaryDirectory()
|
52 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
53 |
with open(temp_filepath, "wb") as f:
|
54 |
-
f.write(json_docs.getvalue())
|
55 |
json_loader = JSONLoader(
|
56 |
file_path = temp_filepath,
|
57 |
jq_schema=None)
|
|
|
51 |
temp_dir = tempfile.TemporaryDirectory()
|
52 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
53 |
with open(temp_filepath, "wb") as f:
|
54 |
+
f.write(json_docs.getvalue().encode())
|
55 |
json_loader = JSONLoader(
|
56 |
file_path = temp_filepath,
|
57 |
jq_schema=None)
|