Skip to content

Commit

Permalink
✨ feat(controller): add option to hide long text in tagger response
Browse files Browse the repository at this point in the history
Added `hidden_long_text` parameter to `tagger` method to control
the display of long text responses. Updated relevant method calls
to include the new parameter.
  • Loading branch information
sudoskys committed Sep 27, 2024
1 parent 0dcdf45 commit 7aa0f39
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 @@ -73,12 +73,12 @@ async def tagger(self, file, hidden_long_text=False) -> str:
mode += "+VibeTransfer"
except Exception as e:
logger.info(f"Empty metadata {e}")
content.append(f"```\n{result.anime_tags}```")
content.append(f"```\n{result.anime_tags}```\n")
else:
if hidden_long_text:
content.append(f"\n>{result.anime_tags}\n")
else:
content.append(f"```\n{result.anime_tags}```")
content.append(f"```\n{result.anime_tags}```\n")
if read_prompt:
content.append(f"**📦 Prompt:** `{read_prompt}`")
if read_model:
Expand Down

0 comments on commit 7aa0f39

Please sign in to comment.