multiple reoutes for prediction
This commit is contained in:
parent
c8476cb5f5
commit
6010133782
@ -53,6 +53,7 @@ def make_prediction_server(predict_fn: Callable):
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
@app.route("/predict", methods=["POST"])
|
@app.route("/predict", methods=["POST"])
|
||||||
|
@app.route("/", methods=["POST"])
|
||||||
def predict():
|
def predict():
|
||||||
|
|
||||||
# Tensorflow does not free RAM. Workaround: Run prediction function (which instantiates a model) in sub-process.
|
# Tensorflow does not free RAM. Workaround: Run prediction function (which instantiates a model) in sub-process.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user