Di Zhang commited on
Commit
0ade2f6
·
verified ·
1 Parent(s): 4770cd9

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Modified from InternVL Project.
2
+
3
+ import os
4
+ import streamlit as st
5
+ import streamlit.components.v1 as components
6
+
7
+ st.set_page_config(layout="wide")
8
+
9
+ backend_url = os.getenv("backend", "https://chemllm.org/") # 如果环境变量不存在,则使用默认 URL
10
+
11
+ iframe_html = f'<iframe src="{backend_url}" width="100%" height="800"></iframe>'
12
+
13
+ components.html(iframe_html, height=800)