This commit is contained in:
Saifeddine ALOUI 2024-07-22 18:44:58 +02:00
parent 4f2bed2e7d
commit a0239e8df2
3 changed files with 25 additions and 8 deletions

29
app.py
View File

@ -7,20 +7,37 @@ This file is the entry point to the webui.
"""
from lollms.utilities import PackageManager
print("Checking ParisNeo libraries installation ... ",end="",flush=True)
print("Checking ParisNeo libraries installation")
expected_ascii_colors_version = "0.4.0"
print(f"Checking ascii_colors ({expected_ascii_colors_version}) ...", end="", flush=True)
if not PackageManager.check_package_installed_with_version("ascii_colors", ):
PackageManager.install_or_update("ascii_colors")
from ascii_colors import ASCIIColors
ASCIIColors.success("OK")
if not PackageManager.check_package_installed("pipmaster"):
expected_pipmaster_version = "0.1.8"
ASCIIColors.yellow(f"Checking pipmaster ({expected_pipmaster_version}) ...", end="", flush=True)
if not PackageManager.check_package_installed_with_version("pipmaster", expected_pipmaster_version):
PackageManager.install_or_update("pipmaster")
ASCIIColors.success("OK")
if not PackageManager.check_package_installed("lollmsvectordb"):
expected_lollmsvectordb_version = "0.7.5"
ASCIIColors.yellow(f"Checking lollmsvectordb ({expected_lollmsvectordb_version}) ...", end="", flush=True)
if not PackageManager.check_package_installed_with_version("lollmsvectordb", expected_lollmsvectordb_version):
PackageManager.install_or_update("lollmsvectordb")
ASCIIColors.success("OK")
if not PackageManager.check_package_installed("freedom_search"):
expected_freedom_search_version = "0.1.6"
ASCIIColors.yellow(f"Checking freedom_search ({expected_freedom_search_version}) ...", end="", flush=True)
if not PackageManager.check_package_installed_with_version("freedom_search", expected_freedom_search_version):
PackageManager.install_or_update("freedom-search")
ASCIIColors.success("OK")
if not PackageManager.check_package_installed("scrapemaster"):
expected_scrapemaster_version = "0.1.6"
ASCIIColors.yellow(f"Checking scrapemaster ({expected_scrapemaster_version}) ...", end="", flush=True)
if not PackageManager.check_package_installed_with_version("scrapemaster", "0.1.4"):
PackageManager.install_or_update("scrapemaster")
print("OK")
ASCIIColors.success("OK")
from fastapi import FastAPI

@ -1 +1 @@
Subproject commit 95ab717ca4f503c38b4e8a68a8a1104f21ce4303
Subproject commit 9d1f734d74b549995328726b84a3a90fc067f84a

@ -1 +1 @@
Subproject commit 3ca4af60677e0b3fe99c3b7dcc7e7c80384072fd
Subproject commit 30a0cca3abc60b8a78e8ff94924d54f8c27dc4af