I created the following Space (Authorship Obfuscation - a Hugging Face Space by hallisky; files here hallisky/authorship-obfuscation at main) using gradio. It was working well, and I decided to expand the app and tried to add from transformers import AutoTokenizer
to my app.py
. I also added a requirements.txt
in the root folder which has transformers==4.41.0
in it.
However, when I factory rebuild this app, I get the following error
===== Application Startup at 2024-06-18 23:55:09 =====
Traceback (most recent call last):
File "/home/user/app/app.py", line 1, in <module>
from transformers import AutoTokenizer
ModuleNotFoundError: No module named 'transformers'
=== Application stopped (exit code: 1) at 2024-06-18 23:55:17.611578322 UTC ===
I’m not sure why this is happening. I tried deleting and remaking the file but still have the same issue. Could anyone point me to where I might have a mistake? Thanks for the help!