Skip to content

Commit

Permalink
open with utf-8 encoding (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmazumder3927 authored Aug 20, 2024
1 parent 4d3d1ee commit b3923ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def create_report(test, baseline, sample_rollouts, costs, num_segs):
res.append(f'<img style="max-width:100%" src="data:image/png;base64,{img2base64(fig)}" alt="Plot">')
res.append("</body></html>")

with open("report.html", "w") as fob:
with open("report.html", "w", encoding='utf-8') as fob:
fob.write("\n".join(res))
print("Report saved to: './report.html'")

Expand Down

0 comments on commit b3923ce

Please sign in to comment.