Ramesh-vani commited on
Commit
42a06f9
·
verified ·
1 Parent(s): 0fd738f

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -0
app.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, render_template_string
2
+
3
+ app = Flask(__name__)
4
+
5
+ @app.route('/')
6
+ def home():
7
+ html_content = '''
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
+ <style>
14
+ body {
15
+ margin: 0;
16
+ height: 100vh;
17
+ display: flex;
18
+ justify-content: center;
19
+ align-items: center;
20
+ background-color: black;
21
+ }
22
+ .dot {
23
+ width: 20px;
24
+ height: 20px;
25
+ background-color: red;
26
+ border-radius: 50%;
27
+ }
28
+ </style>
29
+ <title>Red Dot</title>
30
+ </head>
31
+ <body>
32
+ <div class="dot"></div>
33
+ </body>
34
+ </html>
35
+ '''
36
+ return render_template_string(html_content)
37
+
38
+ if __name__ == '__main__':
39
+ app.run(debug=True,port=7860)