File size: 360 Bytes
fbcece0
 
 
 
7fc1b17
 
354027b
fbcece0
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import os
import streamlit as st
import streamlit.components.v1 as components

st.set_page_config(layout="wide")

backend_url = os.getenv("backend", "https://internvl.opengvlab.com/")  # 如果环境变量不存在,则使用默认 URL

iframe_html = f'<iframe src="{backend_url}" width="100%" height="800"></iframe>'

components.html(iframe_html, height=800)