XQ commited on
Commit
7fb62fa
·
1 Parent(s): 12fcc8e

Fix slow Safari ITP issue

Browse files
Files changed (1) hide show
  1. src/ui/app.py +2 -3
src/ui/app.py CHANGED
@@ -9,7 +9,6 @@ import os
9
  import random
10
 
11
  import streamlit as st
12
- import streamlit.components.v1 as components
13
  import requests
14
 
15
  API_BASE = os.environ.get("API_BASE_URL", "http://localhost:8000")
@@ -205,10 +204,10 @@ st.markdown('<meta name="robots" content="noindex, nofollow">', unsafe_allow_htm
205
  # ---------------------------------------------------------------------------
206
  # Analytics — Umami Cloud
207
  # ---------------------------------------------------------------------------
208
- components.html(
209
  '<script async src="https://cloud.umami.is/script.js"'
210
  ' data-website-id="cf6c908e-1236-4406-8c02-88aa7c9a0db2"></script>',
211
- height=0,
212
  )
213
 
214
  # ---------------------------------------------------------------------------
 
9
  import random
10
 
11
  import streamlit as st
 
12
  import requests
13
 
14
  API_BASE = os.environ.get("API_BASE_URL", "http://localhost:8000")
 
204
  # ---------------------------------------------------------------------------
205
  # Analytics — Umami Cloud
206
  # ---------------------------------------------------------------------------
207
+ st.markdown(
208
  '<script async src="https://cloud.umami.is/script.js"'
209
  ' data-website-id="cf6c908e-1236-4406-8c02-88aa7c9a0db2"></script>',
210
+ unsafe_allow_html=True,
211
  )
212
 
213
  # ---------------------------------------------------------------------------