[Data loader] Make json data loader work for other languages (#897)
Co-authored-by: Deven Patel <deven298@yahoo.com>
This commit is contained in:
@@ -34,7 +34,7 @@ class JSONLoader(BaseLoader):
|
|||||||
|
|
||||||
# Load json data from various sources. TODO: add support for dictionary
|
# Load json data from various sources. TODO: add support for dictionary
|
||||||
if os.path.isfile(content):
|
if os.path.isfile(content):
|
||||||
with open(content, "r") as json_file:
|
with open(content, "r", encoding="utf-8") as json_file:
|
||||||
json_data = json.load(json_file)
|
json_data = json.load(json_file)
|
||||||
elif re.match(VALID_URL_PATTERN, content):
|
elif re.match(VALID_URL_PATTERN, content):
|
||||||
response = requests.get(content)
|
response = requests.get(content)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "embedchain"
|
name = "embedchain"
|
||||||
version = "0.0.89"
|
version = "0.0.90"
|
||||||
description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"
|
description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"
|
||||||
authors = [
|
authors = [
|
||||||
"Taranjeet Singh <taranjeet@embedchain.ai>",
|
"Taranjeet Singh <taranjeet@embedchain.ai>",
|
||||||
|
|||||||
Reference in New Issue
Block a user