Spaces:
Running
Running
Download app.py from OpenGVLab/VideoChat2: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/OpenGVLab/VideoChat2/resolve/main/app.py
- Command line
-
hf download hf://spaces/OpenGVLab/VideoChat2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/OpenGVLab/VideoChat2/resolve/main/app.py
349 Bytes
| import os | |
| import streamlit as st | |
| import streamlit.components.v1 as components | |
| st.set_page_config(layout="wide") | |
| backend_url = os.getenv("backend", "https://shlab.org.cn") # 如果环境变量不存在,则使用默认 URL | |
| iframe_html = f'<iframe src="{backend_url}" width="100%" height="800"></iframe>' | |
| components.html(iframe_html, height=800) |