multiple reoutes for prediction

This commit is contained in:
Matthias Bisping 2022-04-25 11:18:23 +02:00
parent c8476cb5f5
commit 6010133782

View File

@ -53,6 +53,7 @@ def make_prediction_server(predict_fn: Callable):
return response
@app.route("/predict", methods=["POST"])
@app.route("/", methods=["POST"])
def predict():
# Tensorflow does not free RAM. Workaround: Run prediction function (which instantiates a model) in sub-process.