Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rdagent/components/loader/task_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def __init__(self, json_uri: str) -> None:

def load(self, *argT, **kwargs) -> Sequence[ModelTask]:
# json is supposed to be in the format of {model_name: dict{model_data}}
model_dict = json.load(open(self.json_uri, "r"))
with open(self.json_uri, "r", encoding="utf-8") as f:
model_dict = json.load(f)
# FIXME: the model in the json file is not right due to extraction error
# We should fix them case by case in the future
#
Expand Down
Loading