5digit commited on
Commit
5fa0b66
·
verified ·
1 Parent(s): 4c6db7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import streamlit as st
 
2
 
3
  st.title("Градиент радуги")
4
 
@@ -26,4 +27,4 @@ gradient_html = """
26
  """
27
 
28
  # Использование Streamlit для отображения HTML
29
- st.markdown(gradient_html, unsafe_allow_html=True)
 
1
  import streamlit as st
2
+ import streamlit.components.v1 as components
3
 
4
  st.title("Градиент радуги")
5
 
 
27
  """
28
 
29
  # Использование Streamlit для отображения HTML
30
+ components.html(gradient_html, height=600)