updated cancel code

This commit is contained in:
Saifeddine ALOUI 2023-06-28 22:08:18 +02:00
parent 0aa6956d58
commit e55d089f7a
2 changed files with 10 additions and 2 deletions

View File

@ -167,7 +167,11 @@ class LoLLMsAPPI():
model_url = data["model_url"]
signature = f"{model_name}_{binding_folder}_{model_url}"
self.download_infos[signature]["cancel"]=True
self.socketio.emit('canceled', {
'status': True
},
room=self.current_room_id
)
@socketio.on('install_model')
def install_model(data):
@ -263,6 +267,7 @@ class LoLLMsAPPI():
if self.download_infos[signature]["cancel"]:
raise Exception("canceled")
if hasattr(self.binding, "download_model"):
try:

View File

@ -69,4 +69,7 @@ To select another personality to interact with Einstein, just go to the settings
Let's select Jack Sparrow.
To trigger generation, just press the refresh button from previous message and the tool will use your active personality to generate the next mesasge. you can go on doing this and exploring possible interactions between AI-s.
Now let's take a look in
Few days have passed and now the personality system has been enhanced. Let's start by mounting personalities to use in a multipersonalities conversation.
Let's talk to empror Napoleon Bonaparte and ask it about his plans after conquering Egypt.Now, as you can see, you have a new module in the ui that shows the current personality icon. When we press the + button, we can select the personality to talk to.