From e365ac216b06e8ef1a0180a2f1f94974e52b4fad Mon Sep 17 00:00:00 2001 From: Kaustubh Maske Patil <37668193+nikochiko@users.noreply.github.com> Date: Sat, 30 Dec 2023 05:55:07 +0530 Subject: [PATCH] Fix unsafe_allow_html for fontawesome run icon --- daras_ai_v2/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daras_ai_v2/base.py b/daras_ai_v2/base.py index ae1d2dc5d..273555b38 100644 --- a/daras_ai_v2/base.py +++ b/daras_ai_v2/base.py @@ -1748,7 +1748,7 @@ def _render_published_run_preview(self, published_run: PublishedRun): if published_run.visibility == PublishedRunVisibility.PUBLIC: run_icon = '' 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) @@ -1783,7 +1783,7 @@ def _render_example_preview( run_icon = '' 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)