jrosebr1/simple-keras-rest-api

Tensor Tensor is not an element of this graph.

ibrahimozgon opened this issue · 2 comments

Predict gives this error when i try on web app. But it works fine on console.

You can find related issue here:
keras-team/keras#2397

And also worked solution here:
keras-team/keras#2397 (comment)

  1. I would like to request a requirements.txt file and possible a virtualenv with these repos because I cannot get the code as is to work at all.
    There are various work arounds. I am interested in the following one: If one alters the code by essentially
    getting rid of the load_model() call. It will work on gunicorn, gevent, uwsgi but it will not work on the Flask developmental server???
    run_keras_server.txt

Yeah bumped into above issues too