Mutonix commited on
Commit
f964b16
1 Parent(s): 2c199e0

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
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://bcmi.sjtu.edu.cn/index.html") # 如果环境变量不存在,则使用默认 URL
8
+
9
+ iframe_html = f'<iframe src="{backend_url}" width="100%" height="800"></iframe>'
10
+
11
+ components.html(iframe_html, height=800)