I'm deploying my app to heroku however their free tier only allow < 500MB packages, I'm currently using tensorflow and it takes > 500 MB, I can downgrade it to lower version or use the tensorflow-cpu instead, however, I'm also using Keras, which requires at least tensorflow=2.2.0 (so size > 500MB).
I have looked into these two questions but somehow downgrading Keras causes a lot of imcompatible issues.
Deploy python app to Heroku "Slug Size too large"
Error "Keras requires TensorFlow 2.2 or higher"
What I want to achieve is to be able to use Keras while the size of my packages < 500MB so that I can push my app to heroku