Spaces:
Sleeping
Sleeping
commit_7
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def get_json_file(docs):
|
|
54 |
temp_filepath = os.path.join(temp_dir.name, docs.name)
|
55 |
with open(temp_filepath, "wb") as f:
|
56 |
f.write(docs.getvalue())
|
57 |
-
json_loader = JSONLoader(temp_filepath, jq_schema='.')
|
58 |
json_data = json_loader.load()
|
59 |
json_spec = JsonSpec(dict_=json_data, max_value_length=4000)
|
60 |
json_toolkit = JsonToolkit(spec=json_spec)
|
|
|
54 |
temp_filepath = os.path.join(temp_dir.name, docs.name)
|
55 |
with open(temp_filepath, "wb") as f:
|
56 |
f.write(docs.getvalue())
|
57 |
+
json_loader = JSONLoader(temp_filepath, jq_schema='.', text_content=False)
|
58 |
json_data = json_loader.load()
|
59 |
json_spec = JsonSpec(dict_=json_data, max_value_length=4000)
|
60 |
json_toolkit = JsonToolkit(spec=json_spec)
|