chenlin commited on
Commit
c798cea
1 Parent(s): f286b6b
Files changed (3) hide show
  1. app.py +12 -0
  2. requirements.txt +1 -0
  3. templates/index.html +33 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, render_template
2
+
3
+ app = Flask(__name__)
4
+
5
+
6
+ @app.route("/")
7
+ def index():
8
+ return render_template("index.html")
9
+
10
+
11
+ if __name__ == "__main__":
12
+ app.run(debug=False, port=7860, host="0.0.0.0")
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ flask
templates/index.html ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="utf-8" />
6
+ <meta name="viewport" content="width=device-width" />
7
+ <title>My static Space</title>
8
+ <style>
9
+ body {
10
+ margin: 0;
11
+ }
12
+ .space {
13
+ max-width: 100%;
14
+ max-height: 100%;
15
+ width: 100vw;
16
+ height: 100vh;
17
+ overflow: hidden;
18
+ }
19
+ .iframe {
20
+ min-width: 100%;
21
+ min-height: 100%;
22
+ }
23
+ </style>
24
+ </head>
25
+
26
+ <body>
27
+ <div class="space">
28
+ <iframe class="iframe" allowfullscreen="true" frameborder="0" src="https://g-app-center-034633-6801-l9njd9l.openxlab.space/">
29
+ </iframe>
30
+ </div>
31
+ </body>
32
+
33
+ </html>