Spaces:
Runtime error
Runtime error
JinHyeong99
commited on
Commit
Β·
c78bd59
1
Parent(s):
6c47b79
app.py
CHANGED
@@ -53,9 +53,9 @@ def get_json_file(json_docs):
|
|
53 |
with open(temp_filepath, "wb") as f: # μμ νμΌμ λ°μ΄λ리 μ°κΈ° λͺ¨λλ‘ μ½λλ€.
|
54 |
f.write(json_docs.getvalue()) # Json λ¬Έμμ λ΄μ©μ μμ νμΌμ μλλ€.
|
55 |
json_loader = JSONLoader(
|
56 |
-
file_path = temp_filepath,
|
57 |
-
jq_schema='.messages[].content',
|
58 |
-
text_content=False
|
59 |
)
|
60 |
json_doc = json_loader.load()
|
61 |
return json_doc
|
|
|
53 |
with open(temp_filepath, "wb") as f: # μμ νμΌμ λ°μ΄λ리 μ°κΈ° λͺ¨λλ‘ μ½λλ€.
|
54 |
f.write(json_docs.getvalue()) # Json λ¬Έμμ λ΄μ©μ μμ νμΌμ μλλ€.
|
55 |
json_loader = JSONLoader(
|
56 |
+
# file_path = temp_filepath,
|
57 |
+
# jq_schema='.messages[].content',
|
58 |
+
# text_content=False
|
59 |
)
|
60 |
json_doc = json_loader.load()
|
61 |
return json_doc
|