Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,38 +1,33 @@
|
|
1 |
-
import
|
2 |
-
import sys
|
3 |
-
from flask import Flask, render_template_string
|
4 |
|
5 |
-
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
''')
|
36 |
|
37 |
-
if __name__ == '__main__':
|
38 |
-
app.run(debug=True)
|
|
|
1 |
+
import streamlit as st
|
|
|
|
|
2 |
|
3 |
+
st.set_page_config(layout="wide")
|
4 |
|
5 |
+
# Custom CSS to make the iframe full screen
|
6 |
+
st.markdown(
|
7 |
+
"""
|
8 |
+
<style>
|
9 |
+
.fullScreenFrame > 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 Streamlit webpage
|
25 |
+
st.markdown(
|
26 |
+
"""
|
27 |
+
<div class="fullScreenFrame">
|
28 |
+
<iframe src="http://101.132.98.120:10003/"></iframe>
|
29 |
+
</div>
|
30 |
+
""",
|
31 |
+
unsafe_allow_html=True,
|
32 |
+
)
|
|
|
33 |
|
|
|
|