zyliu commited on
Commit
33603d0
·
verified ·
1 Parent(s): c657cf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,8 +4,8 @@ import streamlit.components.v1 as components
4
 
5
  st.set_page_config(layout="wide")
6
 
7
- backend_url = os.getenv("backend", "http://139.196.83.164:11000/") # 如果环境变量不存在,则使用默认 URL
8
-
9
  iframe_html = """
10
  <!DOCTYPE html>
11
  <html>
@@ -27,7 +27,7 @@ iframe_html = """
27
  </body>
28
  </html>
29
  """
30
- iframe_html = f'<iframe src="http://139.196.83.164:11000/" width="100%" height="800"></iframe>'
31
  #iframe_html = iframe_html.replace("{{backend_url}}", backend_url)
32
  # components.html(iframe_html, height=1200)
33
  components.html(iframe_html, height=800)
 
4
 
5
  st.set_page_config(layout="wide")
6
 
7
+ backend_url = os.getenv("backend", "https://internvl.opengvlab.com/") # 如果环境变量不存在,则使用默认 URL
8
+ print(f"backend_url: {backend_url}")
9
  iframe_html = """
10
  <!DOCTYPE html>
11
  <html>
 
27
  </body>
28
  </html>
29
  """
30
+ iframe_html = f'<iframe src="{backend_url}" width="100%" height="800"></iframe>'
31
  #iframe_html = iframe_html.replace("{{backend_url}}", backend_url)
32
  # components.html(iframe_html, height=1200)
33
  components.html(iframe_html, height=800)