finel fix

This commit is contained in:
Saifeddine ALOUI 2024-04-10 09:52:04 +02:00
parent 611ac3eb0e
commit 1a2fa787b6
2 changed files with 4 additions and 1 deletions

View File

@ -96,6 +96,9 @@ def add_events(sio:socketio):
def take_picture(sid):
try:
client = lollmsElfServer.session.get_client(sid)
if client is None:
lollmsElfServer.error("Client not recognized.\nTry refreshing the page")
return
lollmsElfServer.info("Loading camera")
if not PackageManager.check_package_installed("cv2"):
PackageManager.install_package("opencv-python")

@ -1 +1 @@
Subproject commit 4dbc3b724558b2f2b90cabc98e7351175aee1acc
Subproject commit adef9a41123c6b296a2e486324e8fd7795d6e605