Skip to content

Commit

Permalink
Added link for html preview
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Jan 4, 2025
1 parent 1f22877 commit 8bdbd9e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions add_results_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ def get_software_details_table(system_json):
os.makedirs(os.path.dirname(out_path), exist_ok=True)

html_table = f"""
See the HTML preview [here]https://htmlpreview.github.io/?https://github.com/mlcommons/mlperf_inference_test_submissions_v5.0/blob/main/closed/{submitter}/results/{sut_name}/summary.html
{header_table}
<table>
Expand All @@ -295,9 +294,13 @@ def get_software_details_table(system_json):
<tr><td colspan="2">{software_details}</td> </tr>
</table>
{html_table}
"""
readme_content = f"""
See the HTML preview [here](https://htmlpreview.github.io/?https://github.com/mlcommons/mlperf_inference_test_submissions_v5.0/blob/main/closed/{submitter}/results/{sut_name}/summary.html)
{html_table}
"""
with open(out_path, "w") as f:
f.write(html_table)
f.write(readme_content)
html_out_path = os.path.join(division, submitter, "results", sut_name, "summary.html")
html_header = get_header()
html = f"""
Expand Down

0 comments on commit 8bdbd9e

Please sign in to comment.