Fix failing test on Windows Platform (#11589)
* add separator for windows * fixes test_is_copy_consistent on Windows * fixing writing encoding issue on extended test (for Windows) * resolving comments
This commit is contained in:
@@ -571,7 +571,7 @@ def main():
|
||||
)
|
||||
predictions = [pred.strip() for pred in predictions]
|
||||
output_prediction_file = os.path.join(training_args.output_dir, "generated_predictions.txt")
|
||||
with open(output_prediction_file, "w") as writer:
|
||||
with open(output_prediction_file, "w", encoding="utf-8") as writer:
|
||||
writer.write("\n".join(predictions))
|
||||
|
||||
if training_args.push_to_hub:
|
||||
|
||||
Reference in New Issue
Block a user