runtime error
Exit code: 1. Reason: main.py", line 4, in <module> from routers import user, holdings File "/app/routers/holdings.py", line 10, in <module> from utils.sentiment_service import fetch_news, analyze_sentiment File "/app/utils/sentiment_service.py", line 36, in <module> initialize_finbert() ~~~~~~~~~~~~~~~~~~^^ File "/app/utils/sentiment_service.py", line 28, in initialize_finbert finbert_model = AutoModelForSequenceClassification.from_pretrained( "yiyanghkust/finbert-tone", use_safetensors=True # Prefer safetensors to avoid OSError ) File "/usr/local/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 571, in from_pretrained return model_class.from_pretrained( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/site-packages/transformers/modeling_utils.py", line 279, in _wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4260, in from_pretrained checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ pretrained_model_name_or_path=pretrained_model_name_or_path, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<13 lines>... commit_hash=commit_hash, ^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/site-packages/transformers/modeling_utils.py", line 1017, in _get_resolved_checkpoint_files raise EnvironmentError( ...<4 lines>... ) OSError: yiyanghkust/finbert-tone does not appear to have a file named model.safetensors or model.safetensors.index.json and thus cannot be loaded with `safetensors`. Please make sure that the model has been saved with `safe_serialization=True` or do not set `use_safetensors=True`.
Container logs:
Fetching error logs...