Spaces:
Sleeping
Sleeping
Commit
·
d0e6593
1
Parent(s):
f0ea204
edit app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def get_json_file(json_docs):
|
|
53 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
54 |
with open(temp_filepath, "wb") as f:
|
55 |
f.write(json_docs.getvalue())
|
56 |
-
loader = JSONLoader(temp_filepath)
|
57 |
json_doc = loader.load()
|
58 |
return json_doc
|
59 |
|
|
|
53 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
54 |
with open(temp_filepath, "wb") as f:
|
55 |
f.write(json_docs.getvalue())
|
56 |
+
loader = JSONLoader(temp_filepath, jq_schema="info")
|
57 |
json_doc = loader.load()
|
58 |
return json_doc
|
59 |
|