Update app.py
Browse files
app.py
CHANGED
|
@@ -1,25 +1,26 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
# Define URLs
|
| 4 |
-
url1 = "https://example1.com"
|
| 5 |
-
url2 = "https://example2.com"
|
| 6 |
-
url3 = "https://example3.com"
|
| 7 |
-
url4 = "https://example4.com"
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
st.markdown(f"[Layout 2a]({url2})")
|
| 16 |
-
with col2:
|
| 17 |
-
st.markdown(f"[Layout 2b]({url3})")
|
| 18 |
|
| 19 |
-
|
| 20 |
-
st.
|
| 21 |
-
st.write(f"[Layout 3]({url4})")
|
| 22 |
|
| 23 |
-
|
| 24 |
-
st.markdown(
|
| 25 |
-
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
# Define URLs
|
| 4 |
+
url1 = "https://www.example1.com"
|
| 5 |
+
url2 = "https://www.example2.com"
|
| 6 |
+
url3 = "https://www.example3.com"
|
| 7 |
+
url4 = "https://www.example4.com"
|
| 8 |
|
| 9 |
+
# Embed URLs using iframes
|
| 10 |
+
iframe1 = f'<iframe src="{url1}" width="800" height="600"></iframe>'
|
| 11 |
+
iframe2 = f'<iframe src="{url2}" width="800" height="600"></iframe>'
|
| 12 |
+
iframe3 = f'<iframe src="{url3}" width="800" height="600"></iframe>'
|
| 13 |
+
iframe4 = f'<iframe src="{url4}" width="800" height="600"></iframe>'
|
| 14 |
|
| 15 |
+
# Display iframes using Markdown
|
| 16 |
+
st.markdown(f"### Layout 1")
|
| 17 |
+
st.markdown(iframe1, unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
st.markdown(f"### Layout 2")
|
| 20 |
+
st.markdown(iframe2, unsafe_allow_html=True)
|
|
|
|
| 21 |
|
| 22 |
+
st.markdown(f"### Layout 3")
|
| 23 |
+
st.markdown(iframe3, unsafe_allow_html=True)
|
| 24 |
+
|
| 25 |
+
st.markdown(f"### Layout 4")
|
| 26 |
+
st.markdown(iframe4, unsafe_allow_html=True)
|