mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-17 18:17:10 +00:00
Suppress non-actionable HuggingFace FutureWarning shown on app start
This commit is contained in:
parent
1ac6a71ff0
commit
ec675d27d3
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue