From 6886241154040eef6455b910c8a06d56d0518903 Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Sat, 31 Aug 2024 16:10:00 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8D=EF=B8=8F[Update]=20Model=20:=20Fut?= =?UTF-8?q?ureWarning=E3=81=8C=E5=87=BA=E3=82=8B=E3=81=AE=E3=81=A7ignore?= =?UTF-8?q?=E3=81=A7=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit huggingface_hub\file_download.py:1150: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True. --- src-python/models/translation/translation_translator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src-python/models/translation/translation_translator.py b/src-python/models/translation/translation_translator.py index e3fa870e..6b7e6c15 100644 --- a/src-python/models/translation/translation_translator.py +++ b/src-python/models/translation/translation_translator.py @@ -7,6 +7,9 @@ from .translation_utils import ctranslate2_weights import ctranslate2 import transformers +import warnings +warnings.filterwarnings("ignore") + # Translator class Translator(): def __init__(self):