mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 02:39:47 +00:00
enhanced code
This commit is contained in:
parent
e768ebe2d3
commit
40fd42dace
@ -1436,7 +1436,7 @@ class LoLLMsAPPI(LollmsApplication):
|
||||
|
||||
|
||||
|
||||
def notify(self, content, status, client_id):
|
||||
def notify(self, content, status, client_id=None):
|
||||
self.socketio.emit('notification', {
|
||||
'content': content,# self.connections[client_id]["generated_text"],
|
||||
'status': status
|
||||
@ -1563,7 +1563,9 @@ class LoLLMsAPPI(LollmsApplication):
|
||||
"""
|
||||
Processes a chunk of generated text
|
||||
"""
|
||||
|
||||
if not client_id in list(self.connections.keys()):
|
||||
self.notify("Connection lost",False, client_id)
|
||||
return
|
||||
if message_type == MSG_TYPE.MSG_TYPE_STEP:
|
||||
ASCIIColors.info("--> Step:"+chunk)
|
||||
if message_type == MSG_TYPE.MSG_TYPE_STEP_START:
|
||||
|
@ -35,6 +35,9 @@ With these configurations, you have the power to customize your art generation e
|
||||
|
||||
In the next part of the video, we will learn how to generate an image using Artbot without utilizing the imagination module. To begin, simply deactivate the "imagine" option and enter your prompt. The system expects one or two lines of text. If you provide only one line, it will be considered as the positive prompt. If you provide a second line, it will be considered as the negative prompt, and the generation model will try to avoid its content.
|
||||
|
||||
In this example, we will test a simple prompt with only a positive prompt. Once you press enter, the system will start generating the images. We will generate six images, so please wait for them to be built. Once they are ready, you can select the image you like the most and save it.
|
||||
In this example, we will test a simple prompt with a positive prompt and my recipe negative prompt. Once you press enter, the system will start generating the images. We will generate six images, so please wait for them to be built. Once they are ready, you can select the image you like the most and save it.
|
||||
|
||||
Here we're going to make some Steampunk style artworks. As you can see, the artworks are good as we did use the default negative prompt which enhances the generated images. It is important to learn how to prompt the AI in this imaginationless mode as you are the one who needs to do the imagination and the prompting.
|
||||
|
||||
Now let's try to test a steampunk illustration in continuous mode. To activate this mode, just go to the settings of artbot and select continue_from_last_image. This means that the prompts will induce updates to last picture instead of starting from scratch. We can also fix the image to image denoising strength. A bigger value yields more changes to the generated image, and a smaller value yields less changes.
|
||||
|
||||
Here we're going to make some Steampunk style artworks. As you can see, the artworks are good as we did use the default negative prompt which enhances the generated images. But here, we only relyed on our own positive prompt.
|
@ -1 +1 @@
|
||||
Subproject commit f1760f1a8482fa37d2bbc122b0421abf8cdfd06b
|
||||
Subproject commit 4ac0f7e3a20c98c88a42905295ad4078a84d9371
|
@ -1 +1 @@
|
||||
Subproject commit 0fe4d7be41a57dd4acb113cfe74f115a65819177
|
||||
Subproject commit 74ae4ddc3d62901c8a3d4f0a3379278c4ce3464e
|
Loading…
Reference in New Issue
Block a user