From e314731de6f877fbba6e63c10e2a9dac0c78d8a3 Mon Sep 17 00:00:00 2001 From: James Briggs <james.briggs@hotmail.com> Date: Sat, 2 Mar 2024 14:49:23 +0800 Subject: [PATCH] fix vit Image import --- semantic_router/encoders/vit.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/semantic_router/encoders/vit.py b/semantic_router/encoders/vit.py index 9ff1369b..65de365a 100644 --- a/semantic_router/encoders/vit.py +++ b/semantic_router/encoders/vit.py @@ -3,12 +3,6 @@ from typing import Any, List, Optional from pydantic.v1 import PrivateAttr from semantic_router.encoders import BaseEncoder -from semantic_router.utils.logger import logger - -try: - from PIL import Image -except ImportError: - logger.warning("Pillow is not installed. Install it with `pip install pillow`") class VitEncoder(BaseEncoder): -- GitLab