Traceback (most recent call last):
File "/home/v/swarms/fuyu.py", line 1, in
from swarms.models.fuyu import Fuyu
File "/home/v/swarms/swarms/models/fuyu.py", line 2, in
from transformers import (
File "", line 1075, in _handle_fromlist
File "/home/v/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1336, in getattr
value = getattr(module, name)
File "/home/v/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1335, in getattr
module = self._get_module(self._class_to_module[name])
File "/home/v/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1347, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.models.fuyu.processing_fuyu because of the following error (look up to see its traceback):
typing.Optional requires a single type. Got <module 'PIL.Image' from '/usr/lib/python3/dist-packages/PIL/Image.py'>.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too