Skip to content

Commit

Permalink
🐛 fix(controller): format messages with backticks for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoskys committed Oct 1, 2024
1 parent ee211e4 commit 5c3ce4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def read_a111(file: BytesIO):
logger.debug(f"Error {e}")
return []
else:
return [f"**📦 Prompt**\n```{prompt}```", f">{message}\n"]
return [f"**📦 Prompt**\n```{prompt}```", f">`{message}`\n"]


async def read_comfyui(file: BytesIO):
Expand Down Expand Up @@ -170,7 +170,7 @@ async def tagger(self, file, hidden_long_text=False) -> str:
None,
)
if read_message and hidden_long_text:
infer_message.append(f"\n>{result.anime_tags}\n")
infer_message.append(f"\n>`{result.anime_tags}`\n")
else:
infer_message.append(f"```{result.anime_tags}```")
if result.characters:
Expand Down

0 comments on commit 5c3ce4d

Please sign in to comment.