Skip to content

Commit

Permalink
encode to base64 for html
Browse files Browse the repository at this point in the history
  • Loading branch information
iishiishii committed May 4, 2024
1 parent 35eaabd commit b17387d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/model-inference-with-timing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ jobs:
- name: Plot results
run: |
python plot_results.py -models ${{ needs.list_models.outputs.all_models }}
image_base64=$(base64 -w 0 pareto_front.png)
echo "$WORK_DIR/pareto_front.png"
echo "<img src=\"data:image/png;base64,$image_base64\">" >> "$GITHUB_STEP_SUMMARY"
IMAGE_BASE64="data:image/jpeg;base64,$(base64 -w 0 pareto_front.png)"
echo $IMAGE_BASE64
echo "<img src=$IMAGE_BASE64>"
echo "<img src=$IMAGE_BASE64>" >> "$GITHUB_STEP_SUMMARY"

0 comments on commit b17387d

Please sign in to comment.