czczup commited on
Commit
9d512c1
·
verified ·
1 Parent(s): 1498cd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -1,11 +1,14 @@
1
- import os
2
  import streamlit as st
3
- import streamlit.components.v1 as components
4
 
5
  st.set_page_config(layout="wide")
6
 
7
- backend_url = os.getenv("backend", "https://internvl.opengvlab.com/") # 如果环境变量不存在,则使用默认 URL
 
 
 
 
 
 
 
 
8
 
9
- iframe_html = f'<iframe src="{backend_url}" width="100%" height="800"></iframe>'
10
-
11
- components.html(iframe_html, height=800)
 
 
1
  import streamlit as st
 
2
 
3
  st.set_page_config(layout="wide")
4
 
5
+ # Embed the external Streamlit webpage
6
+ st.markdown(
7
+ """
8
+ <div class="fullScreenFrame">
9
+ <iframe src="https://internvl.opengvlab.com/"></iframe>
10
+ </div>
11
+ """,
12
+ unsafe_allow_html=True,
13
+ )
14