Spaces:
Running
Running
Di Zhang
commited on
Create app.py
Browse files
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)
|