ai
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def get_json_file(json_docs):
|
|
49 |
temp_dir = tempfile.TemporaryDirectory()
|
50 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
51 |
with open(temp_filepath, "wb") as f: # μμ νμΌμ λ°μ΄λ리 μ°κΈ° λͺ¨λλ‘ μ½λλ€.
|
52 |
-
f.write(
|
53 |
|
54 |
json_loader = JSONLoader(temp_filepath)
|
55 |
json_doc = json_loader.load()
|
|
|
49 |
temp_dir = tempfile.TemporaryDirectory()
|
50 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
51 |
with open(temp_filepath, "wb") as f: # μμ νμΌμ λ°μ΄λ리 μ°κΈ° λͺ¨λλ‘ μ½λλ€.
|
52 |
+
f.write(json.loads(Path(temp_filepath).read_text()))
|
53 |
|
54 |
json_loader = JSONLoader(temp_filepath)
|
55 |
json_doc = json_loader.load()
|