Skip to content

Commit

Permalink
chore: suppress UserWarning from huggingface_hub
Browse files Browse the repository at this point in the history
  • Loading branch information
radurogojanumai committed Feb 20, 2025
1 parent b93d93d commit 4fbd120
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mostlyai/qa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
__version__ = "1.5.5"

warnings.filterwarnings("ignore", category=FutureWarning, module="phik")
warnings.filterwarnings("ignore", category=UserWarning, module="huggingface_hub")
os.environ["TOKENIZERS_PARALLELISM"] = "false"
if Version(pd.__version__) >= Version("2.2.0"):
pd.set_option("future.no_silent_downcasting", True)

# Suppress HF_TOKEN warning since we only use public models
warnings.filterwarnings("ignore", category=UserWarning, message="The secret.*HF_TOKEN.*")

0 comments on commit 4fbd120

Please sign in to comment.