Detect and drop some blacklisted tags, which are listed `here <https://huggingface.co/datasets/alea31415/tag_filtering/blob/main/blacklist_tags.txt>`_.
"""
fromfunctoolsimportlru_cache
fromtypingimportUnion,List,Mapping,Set,Optional
@@ -6,6 +10,12 @@ from huggingface_hub import hf_hub_download
@lru_cache()
def_load_online_blacklist()->List[str]:
"""
Load the online blacklist tags from the specified dataset repository.