osanseviero commited on
Commit
9fa7daa
·
1 Parent(s): 2ae777c

Prueba de concepto

Browse files
Files changed (3) hide show
  1. app.py +14 -0
  2. requirements.txt +2 -0
  3. static/index.html +5 -0
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)
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Flask==2.0.2
2
+ python-dotenv==0.19.2
static/index.html ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ <h1>
2
+ Flask Space
3
+ </h1>
4
+
5
+ <p>Hello world!</p>