Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import streamlit.components.v1 as components
|
|
| 5 |
st.set_page_config(layout="wide")
|
| 6 |
|
| 7 |
backend_url = os.getenv("backend", "https://internvl.opengvlab.com/") # 如果环境变量不存在,则使用默认 URL
|
| 8 |
-
|
| 9 |
iframe_html = """
|
| 10 |
<!DOCTYPE html>
|
| 11 |
<html>
|
|
@@ -27,7 +27,5 @@ iframe_html = """
|
|
| 27 |
</body>
|
| 28 |
</html>
|
| 29 |
"""
|
| 30 |
-
iframe_html =
|
| 31 |
-
|
| 32 |
-
# components.html(iframe_html, height=1200)
|
| 33 |
-
components.html(iframe_html, height=800)
|
|
|
|
| 5 |
st.set_page_config(layout="wide")
|
| 6 |
|
| 7 |
backend_url = os.getenv("backend", "https://internvl.opengvlab.com/") # 如果环境变量不存在,则使用默认 URL
|
| 8 |
+
|
| 9 |
iframe_html = """
|
| 10 |
<!DOCTYPE html>
|
| 11 |
<html>
|
|
|
|
| 27 |
</body>
|
| 28 |
</html>
|
| 29 |
"""
|
| 30 |
+
iframe_html = iframe_html.replace("{{backend_url}}", backend_url)
|
| 31 |
+
components.html(iframe_html, height=1200)
|
|
|
|
|
|