ImportError: BertModel requires the PyTorch library but it was not found in your environment. Checkout the instructions on the installation page: https://pytorch.org/get-started/locally/ and follow the ones that match your environment. Please note that you may need to restart your runtime after installation.
File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
exec(code, module.__dict__)
File "/home/user/app/app.py", line 21, in <module>
import helpers.icons_embeddings as ice
File "/home/user/app/helpers/icons_embeddings.py", line 21, in <module>
model = BertModel.from_pretrained(GlobalConfig.TINY_BERT_MODEL)
File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1543, in __getattribute__
requires_backends(cls, cls._backends)
File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1531, in requires_backends
raise ImportError("".join(failed))```
Import error after recent update:
ImportError: BertModel requires the PyTorch library but it was not found in your environment. Checkout the instructions on the installation page: https://pytorch.org/get-started/locally/ and follow the ones that match your environment. Please note that you may need to restart your runtime after installation.