mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-20 05:08:00 +00:00
upgraded midjourney
This commit is contained in:
parent
984c94aed6
commit
d40cce3cbe
@ -618,7 +618,7 @@ class AIPersonality:
|
|||||||
system_message_template = self.config.system_message_template
|
system_message_template = self.config.system_message_template
|
||||||
|
|
||||||
prompt = "\n".join([
|
prompt = "\n".join([
|
||||||
f"{start_header_id_template}{system_message_template}{end_header_id_template}I am an AI assistant that can converse and analyze images. When asked to locate something in an image you send, I will reply with:",
|
self.system_full_header+f"I am an AI assistant that can converse and analyze images. When asked to locate something in an image you send, I will reply with:",
|
||||||
"boundingbox(image_index, label, left, top, width, height)",
|
"boundingbox(image_index, label, left, top, width, height)",
|
||||||
"Where:",
|
"Where:",
|
||||||
"image_index: 0-based index of the image",
|
"image_index: 0-based index of the image",
|
||||||
|
@ -213,7 +213,7 @@ class LollmsMidjourney(LollmsTTI):
|
|||||||
if width<1024:
|
if width<1024:
|
||||||
file_name = self.download_image(progress_response["uri"], output_path)
|
file_name = self.download_image(progress_response["uri"], output_path)
|
||||||
|
|
||||||
return file_name
|
return file_name, {"prompt":positive_prompt, "negative_prompt":negative_prompt}
|
||||||
|
|
||||||
# Upscale the generated image
|
# Upscale the generated image
|
||||||
upscale_response = self.upscale_image(message_id, "U1")
|
upscale_response = self.upscale_image(message_id, "U1")
|
||||||
@ -230,6 +230,7 @@ class LollmsMidjourney(LollmsTTI):
|
|||||||
return file_name, {"prompt":positive_prompt, "negative_prompt":negative_prompt}
|
return file_name, {"prompt":positive_prompt, "negative_prompt":negative_prompt}
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
trace_exception(e)
|
||||||
ASCIIColors.error(f"An error occurred: {e}")
|
ASCIIColors.error(f"An error occurred: {e}")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user