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