runtime error
Exit code: 1. Reason: Traceback (most recent call last): File "/home/user/app/app.py", line 10, in initialize_translator return pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-en-es", device=device) File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 1033, in pipeline tokenizer = AutoTokenizer.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 920, in from_pretrained return tokenizer_class.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1651, in __getattribute__ requires_backends(cls, cls._backends) File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1639, in requires_backends raise ImportError("".join(failed)) ImportError: MarianTokenizer requires the SentencePiece library but it was not found in your environment. Checkout the instructions on the installation page of its repo: https://github.com/google/sentencepiece#installation and follow the ones that match your environment. Please note that you may need to restart your runtime after installation. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/app.py", line 14, in <module> translator = initialize_translator() File "/home/user/app/app.py", line 12, in initialize_translator raise RuntimeError(f"Failed to initialize translation pipeline: {e}") RuntimeError: Failed to initialize translation pipeline: MarianTokenizer requires the SentencePiece library but it was not found in your environment. Checkout the instructions on the installation page of its repo: https://github.com/google/sentencepiece#installation and follow the ones that match your environment. Please note that you may need to restart your runtime after installation.
Container logs:
Fetching error logs...