mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-20 17:22:47 +00:00
upgraded
This commit is contained in:
parent
a0239e8df2
commit
ad8bab5e1d
9
app.py
9
app.py
@ -35,9 +35,16 @@ ASCIIColors.success("OK")
|
||||
|
||||
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"):
|
||||
if not PackageManager.check_package_installed_with_version("scrapemaster", expected_scrapemaster_version):
|
||||
PackageManager.install_or_update("scrapemaster")
|
||||
ASCIIColors.success("OK")
|
||||
|
||||
expected_lollms_client_version = "0.6.2"
|
||||
ASCIIColors.yellow(f"Checking lollms_client ({expected_lollms_client_version}) ...", end="", flush=True)
|
||||
if not PackageManager.check_package_installed_with_version("lollms_client", expected_lollms_client_version):
|
||||
PackageManager.install_or_update("lollms-client")
|
||||
ASCIIColors.success("OK")
|
||||
|
||||
|
||||
|
||||
from fastapi import FastAPI
|
||||
|
@ -266,7 +266,8 @@ async def open_folder(file_path: FilePath):
|
||||
if Path(path).exists():
|
||||
# Use subprocess.Popen to safely open the file
|
||||
if platform.system() == 'Windows':
|
||||
subprocess.Popen(f'explorer "{path}"', shell=True)
|
||||
path = path.replace('/','\\')
|
||||
subprocess.Popen(f'explorer "{path}"')
|
||||
elif platform.system() == 'Linux':
|
||||
subprocess.run(['xdg-open', str(path)], check=True, shell=True)
|
||||
elif platform.system() == 'Darwin':
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 30a0cca3abc60b8a78e8ff94924d54f8c27dc4af
|
||||
Subproject commit afe572f2e4728081c9924a130deb05799f6ecb41
|
Loading…
x
Reference in New Issue
Block a user