This commit is contained in:
ParisNeo 2023-05-11 15:15:09 +02:00
parent ef30c707d6
commit 2c565e8696
2 changed files with 4 additions and 3 deletions

View File

@ -51,6 +51,7 @@ class GPT4AllAPI():
if self.config["backend"] is None:
self.backend = "gpt4all"
self.backend = self.load_backend(self.BACKENDS_LIST[self.config["backend"]])
else:
try:
self.backend = self.load_backend(self.BACKENDS_LIST[self.config["backend"]])
@ -59,9 +60,9 @@ class GPT4AllAPI():
print("Chatbot created successfully")
except Exception:
self.config["backend"] = None
self.config["backend"] = "gpt4all"
self.backend = self.load_backend(self.BACKENDS_LIST[self.config["backend"]])
self.config["model"] = None
self.backend = "gpt4all"
print("No Models found, please select a backend and download a model for this tool to work")
# generation status

View File

@ -11,7 +11,7 @@
<input
type="radio"
:checked="selected"
:disabled="!isInstalled" <!-- Disable radio button if not installed -->
:disabled="!isInstalled"
@change="handleSelection"
/>
{{ title }}