Skip to content

Commit

Permalink
πŸ”§ chore(dependencies): update dependencies in pyproject.toml
Browse files Browse the repository at this point in the history
πŸ”¨ refactor(event): remove unused AnimeIDF and related code

πŸš€ feat(controller): add new message handlers for various commands

♻️ refactor(controller): simplify tagger function and markdown replies
  • Loading branch information
sudoskys committed Dec 25, 2024
1 parent b296460 commit 4d03048
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,14 @@ async def read_novelai(file: BytesIO):
mode += "Img2Img"
if meta_data.Comment.reference_strength:
mode += "+VibeTransfer"
if not meta_data.Comment.prompt:
return []
except Exception as e:
logger.debug(f"Empty metadata {e}")
return []

message.append(formatting.mbold(f"πŸ“¦ NovelAI {mode}", escape=False))
message.append(formatting.mbold("πŸ“¦ NovelAI", escape=False))
message.append(f"πŸ“¦ Mode: {mode}")
if meta_data.Comment.prompt:
message.append(code(content=meta_data.Comment.prompt, language="txt"))
if meta_data.Comment.negative_prompt:
Expand Down

0 comments on commit 4d03048

Please sign in to comment.