Win and linux can run the code
This commit is contained in:
@@ -10,7 +10,7 @@ from typing import Dict, Tuple
|
||||
|
||||
|
||||
def load_json(path: str) -> Dict:
|
||||
with open(path, "r", encoding="ascii") as f:
|
||||
with open(path, "r", encoding="utf-8") as f:
|
||||
return json.load(f)
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ def main():
|
||||
"discrete_invalid_counts": disc_invalid,
|
||||
}
|
||||
|
||||
with open(args.out, "w", encoding="ascii") as f:
|
||||
with open(args.out, "w", encoding="utf-8") as f:
|
||||
json.dump(report, f, indent=2)
|
||||
|
||||
print("eval_report", args.out)
|
||||
|
||||
Reference in New Issue
Block a user