runtime error

_call_with_frames_removed File "/usr/local/lib/python3.10/site-packages/transformers/models/mistral/modeling_tf_mistral.py", line 33, in <module> from ...modeling_tf_utils import ( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_tf_utils.py", line 38, in <module> from .activations_tf import get_tf_activation File "/usr/local/lib/python3.10/site-packages/transformers/activations_tf.py", line 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 5, in <module> pipe = pipeline("text-generation", model="cognitivecomputations/dolphin-2.8-mistral-7b-v02") File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 895, in pipeline framework, model = infer_framework_load_model( File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/base.py", line 258, in infer_framework_load_model _class = getattr(transformers_module, f"TF{architecture}", None) File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1577, in __getattr__ value = getattr(module, name) File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1576, 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 1588, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.models.mistral.modeling_tf_mistral 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...