Spaces:
Sleeping
Sleeping
Add flask app and dependancy
Browse files- app.py +14 -0
- 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
|