JasonLiao commited on
Commit
aa2a821
1 Parent(s): e7f9183

Upload 2 files

Browse files
Files changed (2) hide show
  1. code/app.py +14 -0
  2. code/static/index.html +5 -0
code/app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import flask
2
+ import os
3
+
4
+ from dotenv import load_dotenv
5
+ load_dotenv()
6
+
7
+ app = flask.Flask(__name__, template_folder="static")
8
+
9
+ @app.route("/")
10
+ def index():
11
+ return flask.render_template("index.html")
12
+
13
+ if __name__ == "__main__":
14
+ app.run(host="0.0.0.0", port=7860)
code/static/index.html ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ <h1>
2
+ Flask Space
3
+ </h1>
4
+
5
+ <p>Hello world!</p>