Update security.py

This commit is contained in:
Saifeddine ALOUI 2024-09-12 09:12:09 +02:00 committed by GitHub
parent 627f72832d
commit a1c63689f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,6 +10,7 @@ import platform
import string
from lollms.utilities import PackageManager
from starlette.middleware.base import BaseHTTPMiddleware
from fastapi.responses import JSONResponse
if not PackageManager.check_package_installed("lxml"):
PackageManager.install_package("lxml")