From ec675d27d384a8d5090c7caebcaad306318d8a4c Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sat, 10 Sep 2022 16:40:22 +0300 Subject: [PATCH] Suppress non-actionable HuggingFace FutureWarning shown on app start --- src/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.py b/src/main.py index 6fbcd035..e7dbba5d 100644 --- a/src/main.py +++ b/src/main.py @@ -3,8 +3,12 @@ import os import signal import sys import logging +import warnings from platform import system +# Ignore non-actionable warnings +warnings.filterwarnings("ignore", message=r'snapshot_download.py has been made private', category=FutureWarning) + # External Packages import uvicorn from fastapi import FastAPI