Fix uie python results bug

This commit is contained in:
zhoushunjie
2022-12-14 08:36:10 +00:00
parent 2bdf40a547
commit 9b7cc1fb32

View File

@@ -86,7 +86,8 @@ class UIEModel(FastDeployModel):
for result in results:
uie_result = dict()
for key, uie_results in result.items():
uie_result[key] = list()
for uie_res in uie_results:
uie_result[key] = uie_res.get_dict()
uie_result[key].append(uie_res.get_dict())
new_results += [uie_result]
return new_results