I’ve been trying for a few days to deploy my initial model on Heroku without anysuccess. It runs fine on Gradient (with voila/render etc), but when deploying on Heroku I get the following error message:
“There was an error when executing cell [3]. Please run Voilà with --debug to see the error message.”
Line 3 is just: learn_inf = load_learner(‘export.pkl’)
[I tried with the path and without it. The model “export.pkl” is in the GIT repository]
I’ll share below a few print screens of the main file, procfile and requirements.txt. Any hints will be greatly appreciated!
Main file:
requirements.txt:
https://download.pytorch.org/whl/cpu/torch-1.6.0%2Bcpu-cp36-cp36m-linux_x86_64.whl
https://download.pytorch.org/whl/cpu/torchvision-0.7.0%2Bcpu-cp36-cp36m-linux_x86_64.whl
fastai==1.0.61
voila
ipywidgets
procfile
web: voila --port=$PORT --no-browser --enable_nbextensions=True Quick_Snake_Classifier_App.ipynb