未验证 提交 72d26130 编写于 作者: A andyjpaddle 提交者: GitHub

Merge pull request #6128 from littletomatodonkey/dyg/fix_encode

fix infer rec encoding
...@@ -150,7 +150,7 @@ def main(): ...@@ -150,7 +150,7 @@ def main():
"label": post_result[key][0][0], "label": post_result[key][0][0],
"score": float(post_result[key][0][1]), "score": float(post_result[key][0][1]),
} }
info = json.dumps(rec_info) info = json.dumps(rec_info, ensure_ascii=False)
else: else:
if len(post_result[0]) >= 2: if len(post_result[0]) >= 2:
info = post_result[0][0] + "\t" + str(post_result[0][1]) info = post_result[0][0] + "\t" + str(post_result[0][1])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册