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 7aa0f39 commit d79f794
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}```\n")
content.append(f"```{result.anime_tags}```")
else:
if hidden_long_text:
content.append(f"\n>{result.anime_tags}\n")
else:
content.append(f"```\n{result.anime_tags}```\n")
content.append(f"```{result.anime_tags}```")
if read_prompt:
content.append(f"**📦 Prompt:** `{read_prompt}`")
if read_model:
Expand Down

0 comments on commit d79f794

Please sign in to comment.