Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,37 +1,25 @@
|
|
| 1 |
-
import os
|
| 2 |
import streamlit as st
|
| 3 |
-
import streamlit.components.v1 as components
|
| 4 |
|
| 5 |
st.set_page_config(layout="wide")
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
<html>
|
| 12 |
-
<head>
|
| 13 |
-
<title>InternVL</title>
|
| 14 |
-
<style>
|
| 15 |
iframe {
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
| 22 |
}
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
[<a href="https://github.com/OpenGVLab/InternVL?tab=readme-ov-file#quick-start-with-huggingface" target="_blank">🚀 Quick Start</a>] |
|
| 31 |
-
[<a href="https://github.com/OpenGVLab/InternVL/blob/main/document/How_to_use_InternVL_API.md" target="_blank">🌐 API</a>]
|
| 32 |
-
</div>
|
| 33 |
-
</body>
|
| 34 |
-
</html>
|
| 35 |
-
"""
|
| 36 |
-
iframe_html = iframe_html.replace("{{backend_url}}", backend_url)
|
| 37 |
-
components.html("https://internvl.opengvlab.com/", height=1200)
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
|
| 3 |
st.set_page_config(layout="wide")
|
| 4 |
|
| 5 |
+
# Add custom CSS to make the iframe full screen
|
| 6 |
+
st.markdown(
|
| 7 |
+
"""
|
| 8 |
+
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
iframe {
|
| 10 |
+
position: absolute;
|
| 11 |
+
width: 100%;
|
| 12 |
+
height: 100%;
|
| 13 |
+
border: none;
|
| 14 |
+
}
|
| 15 |
+
.main > div {
|
| 16 |
+
padding: 0;
|
| 17 |
+
height: 100vh;
|
| 18 |
}
|
| 19 |
+
</style>
|
| 20 |
+
""",
|
| 21 |
+
unsafe_allow_html=True,
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
# Embed the external webpage
|
| 25 |
+
st.components.v1.iframe("https://internvl.opengvlab.com/")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|