DanteOz commited on
Commit
dd0f0f7
1 Parent(s): e301b8f

Add flask app and dependancy

Browse files
Files changed (2) hide show
  1. app.py +14 -0
  2. requirements.py +1 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask
2
+
3
+ app = Flask(__name__)
4
+
5
+ @app.route("/")
6
+ def index():
7
+ return "<p>Hello, World!</p>"
8
+
9
+ @app.route("/predict/")
10
+ def predict():
11
+ return {"output": "prediction"}
12
+
13
+ if __name__ == "__main__":
14
+ app.run(host="0.0.0.0", port=7680)
requirements.py ADDED
@@ -0,0 +1 @@
 
 
1
+ flask