This commit is contained in:
suluyan
2025-02-11 17:58:57 +08:00
parent 6637fa094a
commit f854ef2004

View File

@@ -198,8 +198,9 @@ def pipeline(task: str = None,
**kwargs)
except Exception as e:
logger.error(
f'Failed to initialize the pipeline using the transformers pipeline, details: {e}'
)
'We couldn\'t find a suitable pipeline from ms, so we tried to load it using the transformers pipeline,'
' but that also failed.')
raise e
if not device:
device = 'gpu'