ModuleNotFoundError: No module named 'transformers' but I have it in the requirements.txt
Hello all, I am discovering Huggingface and just create my first space following a tutorial.While building, it mentions that it has installed the requirements.txt but then outputs the following error:Traceback (most recent call last):
  File "/home/user/app/app.py", line 1, in <module>
    from transformers import AutoModelForCausalLM, AutoTokenizer
ModuleNotFoundError: No module named 'transformers'Here is the link to said space:AI Chatbot - a Hugging Face Space by kevnoutsawoI tried removing the requirements.txt and putting it back but it does the same. I deleted the space and built a new one and this time I added the requirements.txt before the app.py thinking that maybe the presence of the app.py triggered the building before I added the requirements.txt. After this it says the same.I would be very grateful to learn how I can fix this.Thanks in advance.
2023-07-03T16:40:48Z
Hmm i don’t know but it might be because your file is named requirement.txt but it needs a s? so it should be requirements.txt?
2023-07-03T17:24:18Z
Thank you very much. That was the issue. I fixed that typo and it now works.