Fastai module not found

When I try to deploy my app using huggingface, I get an error for module not found:

Traceback (most recent call last):
  File "", line 2, in <module>
    from fastai.collab import *
ModuleNotFoundError: No module named 'fastai'

Link: Recommender - a Hugging Face Space by awesomepotato2016
How can I install into my Huggingface environment?


It seems you figured this out! For context for others, the dependency needs to be added to requirements.txt as in requirements.txt · awesomepotato2016/recommender at main.


Thank you! It pays to read instructions carefully.

1 Like