Suppress non-actionable HuggingFace FutureWarning shown on app start

This commit is contained in:
Debanjum Singh Solanky 2022-09-10 16:40:22 +03:00
parent 1ac6a71ff0
commit ec675d27d3

View file

@ -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