mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-11 22:51:10 +00:00
fix bugs
This commit is contained in:
parent
a02c23894c
commit
be6e57039b
1 changed files with 1 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ if __name__ == "__main__":
|
|||
raise NotImplementedError(f"key={key} annotation={info.annotation} is not supported.")
|
||||
|
||||
args: argparse.Namespace = parser.parse_args()
|
||||
service_kwargs = {k: json.loads(v) if k in json_keys else v for k, v in args.__dict__.items()}
|
||||
service_kwargs = {k: json.loads(v) if k in json_keys else v for k, v in args.__dict__.items() if v is not None}
|
||||
logger.info(f"service.kwargs={json.dumps(service_kwargs, indent=2, ensure_ascii=False)}")
|
||||
|
||||
service = EMService(**service_kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue