| import streamlit as st |
|
|
| st.set_page_config(layout="wide") |
|
|
| st.markdown( |
| """ |
| <style> |
| .fullScreenFrame { |
| position: relative; |
| padding-bottom: 56.25%; /* Aspect ratio */ |
| height: 0; |
| overflow: hidden; |
| max-width: 100%; |
| margin: 0; |
| padding: 0; |
| border: none; |
| } |
| |
| .fullScreenFrame iframe { |
| position: absolute; |
| top: 0; |
| left: 0; |
| width: 100%; |
| height: 100%; |
| border: none; |
| margin: 0; |
| padding: 0; |
| } |
| |
| /* Ensure body and html have no margin/padding */ |
| body, html { |
| margin: 0; |
| padding: 0; |
| height: 100%; |
| width: 100%; |
| } |
| |
| /* Remove any Streamlit container padding */ |
| .main .block-container { |
| padding: 0; |
| margin: 0; |
| } |
| </style> |
| """, |
| unsafe_allow_html=True, |
| ) |
|
|
| |
| st.markdown( |
| """ |
| <div class="fullScreenFrame"> |
| <iframe src="https://internvl.opengvlab.com/"></iframe> |
| </div> |
| """, |
| unsafe_allow_html=True, |
| ) |
|
|
|
|