👍️[Update] Model : FutureWarningが出るのでignoreで対応

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.
This commit is contained in:
misyaguziya
2024-08-31 16:10:00 +09:00
parent 0a7e5e0a93
commit 6886241154

View File

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