Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ParisNeo committed Jan 31, 2025
2 parents ebf10f5 + 6b54760 commit c7fe963
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions art_painting/artbot/scripts/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,12 @@ def main_process(self, initial_prompt, full_context, context_details:dict=None,
self.width=self.personality_config.width
self.height=self.personality_config.height

metadata_infos += self.add_collapsible_entry("Chosen resolution",f"{self.width}x{self.height}")
metadata_infos += f"## Chosen resolution:\n{self.width}x{self.height}"
self.set_message_content(f"{metadata_infos}")
# ====================================================================================
if self.personality_config.add_style:
styles = self.get_styles(initial_prompt,full_context)
metadata_infos += self.add_collapsible_entry("Chosen style",f"{styles}",open_by_default=True)
metadata_infos += f"## Chosen style: {styles}"
self.set_message_content(f"{metadata_infos}")
else:
styles = None
Expand Down Expand Up @@ -433,7 +433,7 @@ def main_process(self, initial_prompt, full_context, context_details:dict=None,

positive_prompt = self.generate(prompt, self.personality_config.max_generation_prompt_size, callback=self.sink).strip().replace("</s>","").replace("<s>","")
self.step_end("Imagining positive prompt")
metadata_infos += self.add_collapsible_entry("Positive prompt",f"{positive_prompt}", open_by_default=True)
metadata_infos += f"Positive prompt:\n{positive_prompt}"
self.set_message_content(f"{metadata_infos}")
# ====================================================================================
# ====================================================================================
Expand All @@ -458,7 +458,7 @@ def main_process(self, initial_prompt, full_context, context_details:dict=None,
self.step_end("Imagining negative prompt")
else:
negative_prompt = self.personality_config.fixed_negative_prompts
metadata_infos += self.add_collapsible_entry("Negative prompt", f"{negative_prompt}", open_by_default=False)
metadata_infos += f"Negative prompt:\n{negative_prompt}"
self.set_message_content(f"{metadata_infos}")
# ====================================================================================
if self.personality_config.build_title:
Expand All @@ -478,7 +478,7 @@ def main_process(self, initial_prompt, full_context, context_details:dict=None,
if sd_title:
sd_title = sd_title.strip().replace("</s>","").replace("<s>","")
self.step_end("Making up a title")
metadata_infos += self.add_collapsible_entry(f"{sd_title}","",open_by_default=False)
metadata_infos += f"{sd_title}"
self.set_message_content(f"{metadata_infos}")

else:
Expand Down

0 comments on commit c7fe963

Please sign in to comment.