runtime error
Exit code: 1. Reason: 27, in <module> raise ValueError( ValueError: Your currently installed version of Keras is Keras 3, but this is not yet supported in Transformers. Please install the backwards-compatible tf-keras package with `pip install tf-keras`. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/user/app/app.py", line 7, in <module> model = TFAutoModelForQuestionAnswering.from_pretrained("bert-large-uncased-whole-word-masking-finetuned-squad",return_dict=False) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 563, in from_pretrained model_class = _get_model_class(config, cls._model_mapping) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 384, in _get_model_class supported_models = model_mapping[type(config)] File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 735, in __getitem__ return self._load_attr_from_module(model_type, model_name) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 749, in _load_attr_from_module return getattribute_from_module(self._modules[module_name], attr) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 693, in getattribute_from_module if hasattr(module, attr): File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1593, in __getattr__ module = self._get_module(self._class_to_module[name]) File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1605, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.models.bert.modeling_tf_bert because of the following error (look up to see its traceback): Your currently installed version of Keras is Keras 3, but this is not yet supported in Transformers. Please install the backwards-compatible tf-keras package with `pip install tf-keras`.
Container logs:
Fetching error logs...