This commit is contained in:
saloui 2023-07-03 15:18:35 +02:00
parent e790b5f75d
commit c4fcf400c4

6
app.py
View File

@ -504,6 +504,7 @@ class LoLLMsWebUI(LoLLMsAPPI):
elif setting_name== "model_name":
self.config["model_name"]=data['setting_value']
if self.config["model_name"] is not None:
try:
self.model = self.binding.build_model()
except Exception as ex:
@ -515,7 +516,8 @@ class LoLLMsWebUI(LoLLMsAPPI):
ASCIIColors.error(f"Couldn't load model: [{ex}]")
ASCIIColors.error(traceback_text)
return jsonify({ "status":False, 'error':str(ex)})
else:
ASCIIColors.warning("Trying to set a None model. Please select a model for the binding")
print("update_settings : New model selected")
elif setting_name== "binding_name":
@ -907,7 +909,7 @@ class LoLLMsWebUI(LoLLMsAPPI):
return jsonify({"status": False, "error":f"Personality not found @ {pth}"})
def unmount_personality(self):
print("- Unmounting personality ...",end="")
print("- Unmounting personality ...")
try:
data = request.get_json()
# Further processing of the data