Fastai module not found

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

Traceback (most recent call last):
  File "app.py", 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 fast.ai into my Huggingface environment?

2 Likes

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.

2 Likes

Thank you! It pays to read instructions carefully.

1 Like