Spaces:
Running
Running
File size: 961 Bytes
fedfc71 fbcece0 fedfc71 7fc1b17 fedfc71 30288c0 fedfc71 |
1 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 28 29 30 31 32 33 34 35 36 37 |
from flask import Flask, render_template_string
app = Flask(__name__)
@app.route('/')
def index():
return render_template_string('''
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Embed Webpage</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
iframe {
position: absolute;
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
<iframe src="https://internvl.opengvlab.com/"></iframe>
</body>
</html>
''')
if __name__ == '__main__':
app.run(debug=True)
|