added binding installed boolean to card

This commit is contained in:
Saifeddine ALOUI 2023-06-22 21:32:53 +02:00
parent 39cb489b67
commit b046227eaa

2
app.py
View File

@ -612,6 +612,8 @@ class LoLLMsWebUI(LoLLMsAPPI):
bnd = load_config(card)
bnd["folder"]=f.stem
icon_path = Path(f"bindings/{f.name}/logo.png")
installed = (self.lollms_paths.personal_configuration_path/f"binding_{f.stem}.yaml").exists()
bnd["installed"]=installed
if Path(self.lollms_paths.bindings_zoo_path/f"{f.name}/logo.png").exists():
bnd["icon"]=str(icon_path)