Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,32 +1,36 @@
|
|
1 |
-
import
|
2 |
|
3 |
-
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
"""
|
27 |
-
<div class="fullScreenFrame">
|
28 |
-
<iframe src="https://internvl.opengvlab.com/"></iframe>
|
29 |
-
</div>
|
30 |
-
""",
|
31 |
-
unsafe_allow_html=True,
|
32 |
-
)
|
|
|
1 |
+
from flask import Flask, render_template_string
|
2 |
|
3 |
+
app = Flask(__name__)
|
4 |
|
5 |
+
@app.route('/')
|
6 |
+
def index():
|
7 |
+
return render_template_string('''
|
8 |
+
<!DOCTYPE html>
|
9 |
+
<html lang="en">
|
10 |
+
<head>
|
11 |
+
<meta charset="UTF-8">
|
12 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
13 |
+
<title>Embed Webpage</title>
|
14 |
+
<style>
|
15 |
+
body, html {
|
16 |
+
margin: 0;
|
17 |
+
padding: 0;
|
18 |
+
height: 100%;
|
19 |
+
overflow: hidden;
|
20 |
+
}
|
21 |
+
iframe {
|
22 |
+
position: absolute;
|
23 |
+
width: 100%;
|
24 |
+
height: 100%;
|
25 |
+
border: none;
|
26 |
+
}
|
27 |
+
</style>
|
28 |
+
</head>
|
29 |
+
<body>
|
30 |
+
<iframe src="https://internvl.opengvlab.com/"></iframe>
|
31 |
+
</body>
|
32 |
+
</html>
|
33 |
+
''')
|
34 |
|
35 |
+
if __name__ == '__main__':
|
36 |
+
app.run(debug=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|