Update app.py
Browse files1234567891011import osimport streamlit as stimport streamlit.components.v1 as componentsst.set_page_config(layout="wide")backend_url = os.getenv("backend", "https://internvl.opengvlab.com/") # 如果环境变量不存在,则使用默认 URLiframe_html = f'<iframe src="{backend_url}" width="100%" height="800"></iframe>'components.html(iframe_html, height=800)1234567891011121314import streamlit as stst.set_page_config(layout="wide")# Embed the external Streamlit webpagest.markdown("""<div class="fullScreenFrame"><iframe src="https://internvl.opengvlab.com/"></iframe></div>""",unsafe_allow_html=True,)
app.py+9-6