mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 02:39:47 +00:00
updated cancel code
This commit is contained in:
parent
0aa6956d58
commit
e55d089f7a
@ -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:
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user