jeeva780 commited on
Commit
e6c12bb
·
verified ·
1 Parent(s): 9fb179a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -18
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
- # Layout 1
10
- st.markdown(f"[Layout 1]({url1})")
 
 
 
11
 
12
- # Layout 2
13
- col1, col2 = st.columns(2)
14
- with col1:
15
- st.markdown(f"[Layout 2a]({url2})")
16
- with col2:
17
- st.markdown(f"[Layout 2b]({url3})")
18
 
19
- # Layout 3
20
- st.text("Layout 3:")
21
- st.write(f"[Layout 3]({url4})")
22
 
23
- # Layout 4
24
- st.markdown("---")
25
- st.write(f"[Layout 4]({url1})")
 
 
 
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)