Skip to content

Commit

Permalink
Fix unsafe_allow_html for fontawesome run icon
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Dec 30, 2023
1 parent 19f682e commit e365ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daras_ai_v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,7 @@ def _render_published_run_preview(self, published_run: PublishedRun):
if published_run.visibility == PublishedRunVisibility.PUBLIC:
run_icon = '<i class="fa-regular fa-person-running"></i>'
run_count = format_number_with_suffix(published_run.get_run_count())
st.caption(f"{run_icon} {run_count} runs")
st.caption(f"{run_icon} {run_count} runs", unsafe_allow_html=True)

doc = published_run.saved_run.to_dict()
self.render_example(doc)
Expand Down Expand Up @@ -1783,7 +1783,7 @@ def _render_example_preview(

run_icon = '<i class="fa-regular fa-person-running"></i>'
run_count = format_number_with_suffix(published_run.get_run_count())
st.caption(f"{run_icon} {run_count} runs")
st.caption(f"{run_icon} {run_count} runs", unsafe_allow_html=True)

if allow_hide:
self._example_hide_button(published_run=published_run)
Expand Down

0 comments on commit e365ac2

Please sign in to comment.