[Bug fix] Fix issue of loading other languages in config file (#1153)
This commit is contained in:
@@ -393,7 +393,7 @@ class App(EmbedChain):
|
|||||||
|
|
||||||
if config_path:
|
if config_path:
|
||||||
file_extension = os.path.splitext(config_path)[1]
|
file_extension = os.path.splitext(config_path)[1]
|
||||||
with open(config_path, "r") as file:
|
with open(config_path, "r", encoding="UTF-8") as file:
|
||||||
if file_extension in [".yaml", ".yml"]:
|
if file_extension in [".yaml", ".yml"]:
|
||||||
config_data = yaml.safe_load(file)
|
config_data = yaml.safe_load(file)
|
||||||
elif file_extension == ".json":
|
elif file_extension == ".json":
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "embedchain"
|
name = "embedchain"
|
||||||
version = "0.1.59"
|
version = "0.1.60"
|
||||||
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