Recently I encountered the error in hugging face as it was not building there was problem in Fastai Version the model as Hugging face using latest fastai library but kaggle use previous version so In order to create
requirements.txt
file we should have version of libraries keep in mind
you can check for example:
import fastai fastai.__version
Check my Repo in hugging face Space