Skip to content

Commit

Permalink
Save output as unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosgjs committed Feb 5, 2024
1 parent be86df4 commit 5dc1b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autora/doc/pipelines/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def generate(
predictions = pred.predict(prompt, [input], **param_dict)
assert len(predictions) == 1, f"Expected only one output, got {len(predictions)}"
logger.info(f"Writing output to {output}")
with open(output, "w") as f:
with open(output, "w", encoding="utf-8") as f:
f.write(predictions[0])


Expand Down

0 comments on commit 5dc1b91

Please sign in to comment.