Spaces:
Runtime error
Runtime error
custom jsonloader
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def get_json_file(json_docs):
|
|
53 |
with open(temp_filepath, "wb") as f: # μμ νμΌμ λ°μ΄λ리 μ°κΈ° λͺ¨λλ‘ μ½λλ€.
|
54 |
f.write(json_docs.getvalue()) # text λ¬Έμμ λ΄μ©μ μμ νμΌμ μλλ€.
|
55 |
json_loader = JSONLoader(file_path=temp_filepath,
|
56 |
-
jq_schema='.
|
57 |
text_content=False)
|
58 |
json_doc = json_loader.load()
|
59 |
return json_doc
|
|
|
53 |
with open(temp_filepath, "wb") as f: # μμ νμΌμ λ°μ΄λ리 μ°κΈ° λͺ¨λλ‘ μ½λλ€.
|
54 |
f.write(json_docs.getvalue()) # text λ¬Έμμ λ΄μ©μ μμ νμΌμ μλλ€.
|
55 |
json_loader = JSONLoader(file_path=temp_filepath,
|
56 |
+
jq_schema='.users[].firstName',
|
57 |
text_content=False)
|
58 |
json_doc = json_loader.load()
|
59 |
return json_doc
|