fixed 'tag' and 'hist' commands

This commit is contained in:
2023-08-12 08:20:00 +02:00
parent f90e7bcd47
commit 5a435c5f8f
2 changed files with 5 additions and 8 deletions
+1 -4
View File
@@ -78,9 +78,6 @@ def print_chat_hist(chat, dump=False, source_code=False) -> None:
print(f"{message['role'].upper()}: {message['content']}")
def print_tags_frequency(tags: List[str], dump=False) -> None:
if dump:
pp(tags)
return
def print_tags_frequency(tags: List[str]) -> None:
for tag in sorted(set(tags)):
print(f"- {tag}: {tags.count(tag)}")