From af27856ce60b69afd57a083693c278bccd22c1cc Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Fri, 6 Dec 2024 23:27:10 +0100 Subject: [PATCH] upgraded --- lollms/utilities.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lollms/utilities.py b/lollms/utilities.py index 9f097a2..b477e66 100644 --- a/lollms/utilities.py +++ b/lollms/utilities.py @@ -19,7 +19,6 @@ import shutil from typing import List, Optional -from PIL import Image import requests from io import BytesIO import base64 @@ -40,6 +39,10 @@ import subprocess from functools import partial +import pipmaster as pm +if not pm.is_installed("Pillow"): + pm.install("Pillow") +from PIL import Image def create_env(env_name, python_version): pass