mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-24 06:36:37 +00:00
Added checking of my libraries installations
This commit is contained in:
parent
28c807b782
commit
dac7e36b7f
18
app.py
18
app.py
@ -5,6 +5,24 @@ Description: Singleton class for the LoLLMS web UI.
|
|||||||
|
|
||||||
This file is the entry point to the webui.
|
This file is the entry point to the webui.
|
||||||
"""
|
"""
|
||||||
|
from lollms.utilities import PackageManager
|
||||||
|
|
||||||
|
print("Checking ParisNeo libraries installation ... ",end="",flush=True)
|
||||||
|
|
||||||
|
if not PackageManager.check_package_installed("pipmaster"):
|
||||||
|
PackageManager.install_or_update("pipmaster")
|
||||||
|
|
||||||
|
if not PackageManager.check_package_installed("lollmsvectordb"):
|
||||||
|
PackageManager.install_or_update("lollmsvectordb")
|
||||||
|
|
||||||
|
if not PackageManager.check_package_installed("freedom_search"):
|
||||||
|
PackageManager.install_or_update("freedom-search")
|
||||||
|
|
||||||
|
if not PackageManager.check_package_installed("scrapemaster"):
|
||||||
|
PackageManager.install_or_update("scrapemaster")
|
||||||
|
print("OK")
|
||||||
|
|
||||||
|
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.staticfiles import StaticFiles
|
from fastapi.staticfiles import StaticFiles
|
||||||
from starlette.responses import FileResponse
|
from starlette.responses import FileResponse
|
||||||
|
Loading…
Reference in New Issue
Block a user