Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,27 +1,15 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|