czczup commited on
Commit
2e8e8a7
1 Parent(s): 30288c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -2,11 +2,11 @@ import streamlit as st
2
 
3
  st.set_page_config(layout="wide")
4
 
5
- # Add custom CSS to make the iframe full screen
6
  st.markdown(
7
  """
8
  <style>
9
- iframe {
10
  position: absolute;
11
  width: 100%;
12
  height: 100%;
@@ -21,5 +21,12 @@ st.markdown(
21
  unsafe_allow_html=True,
22
  )
23
 
24
- # Embed the external webpage
25
- st.components.v1.iframe("https://internvl.opengvlab.com/")
 
 
 
 
 
 
 
 
2
 
3
  st.set_page_config(layout="wide")
4
 
5
+ # Custom CSS to make the iframe full screen
6
  st.markdown(
7
  """
8
  <style>
9
+ .fullScreenFrame > iframe {
10
  position: absolute;
11
  width: 100%;
12
  height: 100%;
 
21
  unsafe_allow_html=True,
22
  )
23
 
24
+ # Embed the external Streamlit webpage
25
+ st.markdown(
26
+ """
27
+ <div class="fullScreenFrame">
28
+ <iframe src="https://internvl.opengvlab.com/"></iframe>
29
+ </div>
30
+ """,
31
+ unsafe_allow_html=True,
32
+ )