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 = """ InternVL

This space is currently under maintenance 😊😊

We warmly welcome you to visit Chat Demo of InternVL2 if you’re interested 🎉🎉

[📜 InternVL2 Blog] | [🚀 Quick Start] | [🌐 API]
""" iframe_html = iframe_html.replace("{{backend_url}}", backend_url) components.html("https://internvl.opengvlab.com/", height=1200)