Hugorowan commited on
Commit
1e3d6f4
1 Parent(s): 0e96eeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -27
app.py CHANGED
@@ -1,27 +1,15 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width">
6
- <title>My First Bootstrap UI</title>
7
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
8
- </head>
9
- <body>
10
- <div class="container">
11
- <h1>My First Bootstrap UI</h1>
12
- <p>This is a simple UI that I created using Bootstrap.</p>
13
- <p>I used the Bootstrap grid system to create a two-column layout.</p>
14
- <p>The first column contains a heading and a paragraph.</p>
15
- <p>The second column contains a button.</p>
16
- <div class="row">
17
- <div class="col-md-6">
18
- <h2>Heading</h2>
19
- <p>This is a paragraph.</p>
20
- </div>
21
- <div class="col-md-6">
22
- <button type="button" class="btn btn-primary">Button</button>
23
- </div>
24
- </div>
25
- </div>
26
- </body>
27
- </html>
 
1
+ from flask import Flask
2
+
3
+ app = Flask(__name__)
4
+
5
+ @app.route("/")
6
+ def hello_world():
7
+ return "Hello, World!"
8
+
9
+ @app.route("/app")
10
+ def call_app():
11
+ import App
12
+ return App.hello_world()
13
+
14
+ if __name__ == "__main__":
15
+ app.run(debug=True)