title: Heroku : tensorflow 2.2.1 too large for deployment
body: <p>im trying to deploy a keras project to heroku but pushing to the repository master branch seems to be problematic for me as the following error is reported every time I try it:</p>
  
  <pre><code>remote: -----&gt; Compressing...
  remote:  !     Compiled slug size: 836M is too large (max is 500M).
  remote:  !     See: http://devcenter.heroku.com/articles/slug-size
  remote: 
  remote:  !     Push failed
  remote: Verifying deploy...
  remote: 
  remote: !   Push rejected to ...
  </code></pre>
  
  <p>I figured this is due to the tensorflow requirement being way too large for heroku to handle, as <code>git count-objects -vH</code> reports a more modest size for my project:</p>
  
  <pre><code>count: 1
  size: 4.00 KiB
  in-pack: 9146
  packs: 1
  size-pack: 177.42 MiB
  prune-packable: 0
  garbage: 0
  size-garbage: 0 bytes
  </code></pre>
  
  <p>I have offloaded unneeded files and compressed my repo as much as I could...</p>
  
  <p>The only way for my app to be uploaded is to remove tensorflow from requirements.txt but then my app would not run... The same is true if I downgrade to an earlier version of tensorflow as others have suggested. Is it possible to deploy a project such as this using heroku ?</p>