tensorflow - Install Keras on Heroku with Theano backend as default -
i've been trying deploy heroku webapp uses keras models. unfortunately, importing keras default tensorflow backend takes atrociously long, , causing web dyno timeout (due heroku's 30sec limit), causing endless termination , restart cycle. i've since discovered keras imports faster theano backend, don't know how specify use keras w/ theano in heroku deployment. locally, change ~/.keras/keras.json file, how specify heroku's environment? python 3.6.0 keras 2.0.4 theano 0.9.0 tensorflow 1.2.1 thanks much!