Spaces:
Build error
Build error
Commit
·
33e7a34
1
Parent(s):
e56bb0b
got changes working on postman
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ app = Flask(
|
|
| 13 |
)
|
| 14 |
|
| 15 |
CORS(
|
| 16 |
-
app
|
| 17 |
origins="*",
|
| 18 |
)
|
| 19 |
|
|
@@ -23,9 +23,8 @@ def index():
|
|
| 23 |
return render_template("index.html")
|
| 24 |
|
| 25 |
|
| 26 |
-
@app.route("/neural-network", methods=["POST"
|
| 27 |
def neural_network():
|
| 28 |
-
# parse arguments
|
| 29 |
algorithm = options["neural-network"]
|
| 30 |
args = request.json["arguments"]
|
| 31 |
|
|
|
|
| 13 |
)
|
| 14 |
|
| 15 |
CORS(
|
| 16 |
+
app,
|
| 17 |
origins="*",
|
| 18 |
)
|
| 19 |
|
|
|
|
| 23 |
return render_template("index.html")
|
| 24 |
|
| 25 |
|
| 26 |
+
@app.route("/neural-network", methods=["POST"])
|
| 27 |
def neural_network():
|
|
|
|
| 28 |
algorithm = options["neural-network"]
|
| 29 |
args = request.json["arguments"]
|
| 30 |
|